]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xml: add another convenience function
authorEric Blake <eblake@redhat.com>
Thu, 18 Aug 2011 21:01:36 +0000 (15:01 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 19 Aug 2011 15:13:54 +0000 (09:13 -0600)
commit751304e367cdf301dd1feb21b5a655dcecbf06a4
tree8fec153ca5cb338153a7e07315dc066eeeb14910
parente472fe25c73b7a37fcbfe280c128db504c643938
xml: add another convenience function

Often, we want to use XPath functions on the just-parsed document;
fold this into the parser function for convenience.

* src/util/xml.h (virXMLParseHelper): Add argument.
(virXMLParseStrHelper, virXMLParseFileHelper): Delete.
(virXMLParseCtxt, virXMLParseStringCtxt, virXMLParseFileCtxt): New
macros.
* src/libvirt_private.syms (xml.h): Remove deleted functions.
* src/util/xml.c (virXMLParseHelper): Add argument.
(virXMLParseStrHelper, virXMLParseFileHelper): Delete.
src/libvirt_private.syms
src/util/xml.c
src/util/xml.h