Re: [libvirt] [RFC] Comfortable lookup functions interface/block stats

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

 



On Mon, May 12, 2008 at 01:35:33AM +0200, Stefan de Konink wrote:
> Wouldn't it be much nicer for Joe Programmer if the API facilitated the
> functions:
> 
> char ** virDomainInterfacePaths(virDomainPtr dom);
> char ** virDomainBlockPaths(virDomainPtr dom);
> 
> I really don't get why XML parsing should be done for something that is
> almost too trivial to export. Any reasons why not to do implement this?

Yes, I tend to agree that parsing the XML is a pain.  On the other
hand you can write the functions above pretty quickly using libxml2
and XPATH.  Perhaps the easiest solution is some example code?

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
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]