Re: [libvirt] [PATCH v2 07/23] src: add support for g_autoptr with virObject instances

2019-10-08 Thread Ján Tomko
On Mon, Oct 07, 2019 at 06:14:09PM +0100, Daniel P. Berrangé wrote: Libvirt currently uses the VIR_AUTOUNREF macro for auto cleanup of virObject instances. GLib approaches things differently with GObject, reusing their g_autoptr() concept. This introduces support for g_autoptr() with virObject,

[libvirt] [PATCH v2 07/23] src: add support for g_autoptr with virObject instances

2019-10-07 Thread Daniel P . Berrangé
Libvirt currently uses the VIR_AUTOUNREF macro for auto cleanup of virObject instances. GLib approaches things differently with GObject, reusing their g_autoptr() concept. This introduces support for g_autoptr() with virObject, to facilitate the conversion to GObject. Only virObject classes