]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virtpm: Use corresponding type for argument for virTPM*CapsGet()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 20 Jul 2022 07:11:31 +0000 (09:11 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 2 Aug 2022 07:03:17 +0000 (09:03 +0200)
commit18d70df6fc9a47e206826b1094bfcb82c09e1dd5
tree47aa8f353b2140ffed9559b54419375b060a186b
parentebf84b2b36573ee9bc50c37464f18590ecada0eb
virtpm: Use corresponding type for argument for virTPM*CapsGet()

In virtpm.h there are two functions exposed for querying swtpm
and swtpm_setup capabilities: virTPMSwtpmCapsGet() and
virTPMSwtpmSetupCapsGet(), respectively. The capabilities we are
interested in are defined in two separate enums
(virTPMSwtpmFeature and virTPMSwtpmSetupFeature), but these
functions accept capability as an unsigned int rather than their
respective enum. While this makes sense for
virTPMBinaryGetCaps(), which is a module internal helper that
both exposed functions call, there's no need for the functions
themselves to accept unsigned int.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/util/virtpm.c
src/util/virtpm.h