]> git.feebdaed.xyz Git - 0xmirror/libvirt.git/commit
domain_capabilities: Use virXMLFormatElement() in FORMAT_PROLOGUE and FORMAT_EPILOGUE...
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 4 Nov 2025 10:03:18 +0000 (11:03 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Nov 2025 11:21:48 +0000 (12:21 +0100)
commitbf34b3c86ffdc42bd5fa9ecb36e57391459f5572
treed91f7721e2c948aa5c66030580dcf4af109545c0
parentd2d442d79dc0e529c708643476e7f1ec9126748a
domain_capabilities: Use virXMLFormatElement() in FORMAT_PROLOGUE and FORMAT_EPILOGUE macros

Domain capabilities XML is formatted (mostly) using
FORMAT_PROLOGUE and FORMAT_EPILOGUE macros. These format opening
and closing stanzas for given element. The FORMAT_PROLOGUE macro
even tries to be clever and format element onto one line (if the
element isn't supported), but that's not enough. Fortunately, we
have virXMLFormatElement() which formats elements properly, so
let's switch macros into using that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/domain_capabilities.c
tests/domaincapsdata/bhyve_basic.x86_64.xml
tests/domaincapsdata/bhyve_fbuf.x86_64.xml
tests/domaincapsdata/bhyve_uefi.x86_64.xml