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

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



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


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