]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Use virXMLPropEnum more when parsing TPM
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 18 Jul 2022 07:00:40 +0000 (09:00 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 1 Aug 2022 15:35:51 +0000 (17:35 +0200)
commite31fc5bb2a5c66b9a71e7c7ab52a0ebbc0cae4c3
treea04bde488ebf1e6349f19a25a220f1bc9f8aa55f
parentc8992f6d973eeeef6ed1e8a8659ffc67384a4c50
conf: Use virXMLPropEnum more when parsing TPM

When parsing a TPM device plenty of virXMLPropString() +
enum2int() combos are used. These can be replaced with
virXMLPropEnum().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/qemu/qemu_domain.c