]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Refactor formating of 'capabilities' features
authorPeter Krempa <pkrempa@redhat.com>
Tue, 5 Mar 2019 12:48:20 +0000 (13:48 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 6 Mar 2019 14:53:53 +0000 (15:53 +0100)
commit4653ae65af0bc56473ac0fb6d1ac01449d5f5221
treed6fa9807b15facd142b0e6cf643de49317b9e875
parent89dda12b8d51316d15e9d911b49acbce89b27b65
conf: Refactor formating of 'capabilities' features

Use virXMLFormatElement for the formatting which allows us to avoid
looking through the array to see if any feature is enabled.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c