On Thu, 15 May 2008, Daniel Veillard wrote: > On Mon, May 12, 2008 at 01:35:33AM +0200, Stefan de Konink wrote: > > Hi, > > > > 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? > > Hum, how would you use the paths out of their context ? I doubt > Joe Programmer would have much use for a list of paths without knowing > what they are used for. > But maybe I didn't understood your APIs suggestions... If Joe Programmer needs to parse the XML file to fetch 'hda', 'hdb' why not get them directly from the api? Stefan -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list