Re: [libvirt] [libvirt-glib] Fix *_new_from_xml

2012-07-18 Thread Christophe Fergeau
On Wed, Jul 18, 2012 at 03:16:03PM +0200, Christophe Fergeau wrote: > For objects with a subtype 'type' attribute, when the _new_from_xml > function was called, the 'type' attribute was forcefully set to the > right value rather than checking that the passed-in value matches > the type of the subcl

[libvirt] [libvirt-glib] Fix *_new_from_xml

2012-07-18 Thread Christophe Fergeau
For objects with a subtype 'type' attribute, when the _new_from_xml function was called, the 'type' attribute was forcefully set to the right value rather than checking that the passed-in value matches the type of the subclass we are trying to instantiate. This commit changes this, and returns NULL