[libvirt] [PATCH 6/9] virsh: add helpers for getting domain XML for XPath purposes

Ján Tomko jtomko at redhat.com
Wed Apr 12 11:13:37 UTC 2017


On Tue, Apr 11, 2017 at 05:53:52PM +0200, Peter Krempa wrote:
>In virsh we quite often get the domain XML just to initialize the XPath
>parser so that we can extract information.
>
>Add helpers which will simplify this by wrapping the getting of the XML
>and parsing it along with error reporting.
>
>Additionally a second helper also gets the domain object from the
>parameters and releases it so that functions which need the XML as only
>source of data can be simplified further.
>---
> tools/virsh-util.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
> tools/virsh-util.h | 20 ++++++++++++++++++++
> 2 files changed, 68 insertions(+)
>

ACK

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170412/9c371ca3/attachment-0001.sig>


More information about the libvir-list mailing list