]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virXMLFormatElement: Introduce virXMLFormatElementInternal
authorPeter Krempa <pkrempa@redhat.com>
Mon, 28 Mar 2022 14:00:58 +0000 (16:00 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Apr 2022 07:32:47 +0000 (09:32 +0200)
commit68d1056392dcac7a0a825680e9efee3e6519c6e0
tree91288958f0d3d850f927f5ea985195e59d778aed
parenta8682ab79150b6eee565478c7febdb3bb12ab64e
virXMLFormatElement: Introduce virXMLFormatElementInternal

The new function aggregates the internal working of virXMLFormatElement
and virXMLFormatElementEmpty and also allows skipping the newline
after the opening tag to allow using this helper also in cases where we
don't format any child elements but directly a value.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virxml.c
src/util/virxml.h