Re: [libvirt] [PATCH v3 06/19] util: rewrite auto cleanup macros to use glib's equivalent

2019-10-10 Thread Bjoern Walk
Daniel P. Berrangé [2019-10-10, 11:54AM +0100]: > diff --git a/docs/hacking.html.in b/docs/hacking.html.in > index 3f1542b6de..6e62b2d4ff 100644 > --- a/docs/hacking.html.in > +++ b/docs/hacking.html.in > @@ -1028,6 +1028,24 @@ BAD: >The GLib APIs g_strdup_printf / g_strdup_vprint should

[libvirt] [PATCH v3 06/19] util: rewrite auto cleanup macros to use glib's equivalent

2019-10-10 Thread Daniel P . Berrangé
To facilitate porting over to glib, this rewrites the auto cleanup macros to use glib's equivalent. As a result it is now possible to use g_autoptr/VIR_AUTOPTR, and g_auto/VIR_AUTOCLEAN, g_autofree/VIR_AUTOFREE interchangably, regardless of which macros were used to declare the cleanup types.