[RFC PATCH 1/7] util: xml: Introduce virXMLFormatElementEmpty
Andrea Bolognani
abologna at redhat.com
Wed Apr 14 15:30:02 UTC 2021
On Tue, 2021-04-13 at 17:38 +0200, Peter Krempa wrote:
> Add a helper which will format an XML element with attributes and
> children, but compared to virXMLFormatElement it also formats an empty
> element if both buffers are empty.
>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
> src/libvirt_private.syms | 1 +
> src/util/virxml.c | 42 ++++++++++++++++++++++++++--------------
> src/util/virxml.h | 7 +++++++
> 3 files changed, 35 insertions(+), 15 deletions(-)
Reviewed-by: Andrea Bolognani <abologna at redhat.com>
--
Andrea Bolognani / Red Hat / Virtualization
More information about the libvir-list
mailing list