[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 1/8] conf: introduce virDomainGraphicsNew




On 1/16/19 2:41 AM, Ján Tomko wrote:
> A helper function for allocating the virDomainGraphicsDef structure.
> 
> Signed-off-by: Ján Tomko <jtomko redhat com>
> ---
>  src/conf/domain_conf.c | 21 +++++++++++++++++----
>  src/conf/domain_conf.h |  2 ++
>  2 files changed, 19 insertions(+), 4 deletions(-)
> 
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index 222bb8c482..82672c6493 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c
> @@ -14114,10 +14114,21 @@ virDomainGraphicsDefParseXMLEGLHeadless(virDomainGraphicsDefPtr def,
>      return 0;
>  }
>  

blank line

> +virDomainGraphicsDefPtr
> +virDomainGraphicsDefNew(virDomainXMLOptionPtr xmlopt ATTRIBUTE_UNUSED)
> +{
> +    virDomainGraphicsDefPtr def = NULL;
> +
> +    if (VIR_ALLOC(def) < 0)
> +        return NULL;
> +
> +    return def;
> +}
>  

blank line

Reviewed-by: John Ferlan <jferlan redhat com>

John

[...]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]