Re: [libvirt] [libvirt-glib 3/4] Split gvir_config_object_attach

2012-01-19 Thread Daniel P. Berrange
On Wed, Jan 18, 2012 at 04:50:43PM +0100, Christophe Fergeau wrote: Most of the time we want gvir_config_object_attach to replace existing nodes, but sometimes (for devices subnodes) we want it to append the new node and to keep the existing nodes with the same name. This commit solves this by

[libvirt] [libvirt-glib 3/4] Split gvir_config_object_attach

2012-01-18 Thread Christophe Fergeau
Most of the time we want gvir_config_object_attach to replace existing nodes, but sometimes (for devices subnodes) we want it to append the new node and to keep the existing nodes with the same name. This commit solves this by adding 2 distinct helpers, _attach_add and _attach_replace. This should