[libvirt] [libvirt-glib 4/5] Allow unsetting of string & object properties

Christophe Fergeau cfergeau at redhat.com
Thu May 10 21:30:16 UTC 2012


On Thu, May 10, 2012 at 11:49:43PM +0300, Zeeshan Ali (Khattak) wrote:
> On Thu, May 10, 2012 at 9:58 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> > The 2nd one only has the gvir_config_object_attach_replace changes,
> > and it has some changes: I reordered the parameter to _attach_replace to
> > make the order similar to most other functions, and I changed the
> > GVIR_CONFIG_OBJECT() casts to (GVirConfigObject *) otherwise we'd get a
> > runtime check when passing a NULL pointer.
> 
> Thats not true. I was also afraid of that and I wrote a test app to
> see if G_TYPE_CHECK_INSTANCE_CAST minds a null but it didn't.

Indeed, I checked that myself too. For some reason I was convinced it would
trigger a warning. Just change it back then ;)

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120510/0d38e607/attachment-0001.sig>


More information about the libvir-list mailing list