[PATCH 00/36] convert virObjects to GObject

Daniel P. Berrangé berrange at redhat.com
Fri Apr 3 16:03:52 UTC 2020


On Fri, Apr 03, 2020 at 05:15:28PM +0200, Rafael Fonseca wrote:
> This patch series convert various simple instances of virObject to a
> GObject equivalent.
> 
> virDomain is still WIP because it causes some linking problem I am still
> investigating.
> 
> virObjects that work as parent class to other objects will be covered in
> a next patchset.

virConnectPtr is the one I don't know how we'll solve.

virConnectClose requires us to return 0 if the last reference
was released, 1 otherwise.  g_object_unref  returns void  :-(

I've tried to think about ways to detect the removal of the
last reference, but can't figure out a nice solution thus far...



Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list