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 <[email protected]>
> ---
> 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 <[email protected]>
John
[...]
--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list