Re: [libvirt] [PATCH libvirt-glib 2/3] Add GVirDomainInterface

2011-11-14 Thread Christophe Fergeau
On Thu, Nov 10, 2011 at 04:15:01PM -0500, Marc-André Lureau wrote: On Thu, Nov 10, 2011 at 09:33:42PM +0100, Marc-André Lureau wrote: Do we really need to use GSlice here? I consider GSlice as something to use when you want to make many allocations of same-size objects, will we allocate

Re: [libvirt] [PATCH libvirt-glib 2/3] Add GVirDomainInterface

2011-11-14 Thread Christophe Fergeau
Hey, A few more comments I made on IRC (no access to this email when I reviewed the patches), sending them here to be sure they are not missed/lost. The same comments apply to patch 3/3. Can you resend the 3 patches with the various issues fixed? then I'll ACK them. Christophe On Thu, Nov 10,

[libvirt] [PATCH libvirt-glib 2/3] Add GVirDomainInterface

2011-11-10 Thread Marc-André Lureau
--- libvirt-gobject/Makefile.am|2 + libvirt-gobject/libvirt-gobject-domain-interface.c | 213 libvirt-gobject/libvirt-gobject-domain-interface.h | 81 libvirt-gobject/libvirt-gobject.h |1 +

Re: [libvirt] [PATCH libvirt-glib 2/3] Add GVirDomainInterface

2011-11-10 Thread Christophe Fergeau
A few preliminary remark below, they apply to the next patch as well. On Thu, Nov 10, 2011 at 09:33:42PM +0100, Marc-André Lureau wrote: --- libvirt-gobject/Makefile.am|2 + libvirt-gobject/libvirt-gobject-domain-interface.c | 213

Re: [libvirt] [PATCH libvirt-glib 2/3] Add GVirDomainInterface

2011-11-10 Thread Marc-André Lureau
Hi On Thu, Nov 10, 2011 at 09:33:42PM +0100, Marc-André Lureau wrote: +case PROP_PATH: +if (priv-path) +g_free(priv-path); You can safely call g_free on a NULL pointer, this makes the code a bit simpler, there are several occurrences of this in the 2 patches.