[libvirt] [libvirt-glib PATCHv3 16/27] Add gvir_config_object_add_child

Daniel P. Berrange berrange at redhat.com
Wed Nov 23 14:53:11 UTC 2011


On Wed, Nov 23, 2011 at 02:34:59PM +0100, Christophe Fergeau wrote:
> It's similar to gvir_config_object_replace_child except that if the
> current node already has a child with the correct name, it returns
> the existing child instead of replacing it.
> 
> --
> v2: instead of adding an argument to gvir_config_object_new_child,
> split the function in 2 separate ones, gvir_config_object_add_child
> and gvir_config_object_replace_child.
>     use g_return_if_fail to test function args for sanity
> ---
>  libvirt-gconfig/libvirt-gconfig-object-private.h |    2 ++
>  libvirt-gconfig/libvirt-gconfig-object.c         |   20 ++++++++++++++++++++
>  2 files changed, 22 insertions(+), 0 deletions(-)

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list