On 02/15/2013 01:32 PM, Peter Krempa wrote:
The callback is a idea that me, Michal and Jiri were discussing earlier.
It's meant as a abstraction of what you said. The XML is parsed on many
places and the callback would eliminate the need to add the filling
function after every call of the parser.
Furthermore, we are already passing a virCapsPtr capability object
through to much of the parser - that capability object would be a
natural place to add whatever callback function pointers are needed.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org