Re: [glib] Don't overwrite filesystem type when writing format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2015-07-07 at 17:31 +0200, Christophe Fergeau wrote:
> This is unintuitive, but after looking at the code and a quick test, I
> think _add_child() will create the node if it does not exist, and
> return
> the existing node if it already exists. So I think this could become:
> 
> +        node =
> gvir_config_object_add_child(GVIR_CONFIG_OBJECT(filesys), "driver");

Waooh, indeed, not intuitive at all ;)
I'll use that one then.

--
Cedric

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]