[libvirt] [PATCH v2 11/16] conf: domcaps: Add virCapsEnum 'report'

Cole Robinson crobinso at redhat.com
Wed Mar 6 23:37:00 UTC 2019


virCapsEnum report is an internal bool indicating whether we
should format the enum in the XML at all. This is unused for
now but will be handled in future patches.

We use a plain bool instead of tristate because the case here
is a bit different than the explicit @supported output. We
already report the equivalent of supported=YES|NO based on
what enum values are filled in. This adds report=false to
handle the ABSENT case.

Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 src/conf/domain_capabilities.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/domain_capabilities.h b/src/conf/domain_capabilities.h
index 3282b47d52..26f4b8c394 100644
--- a/src/conf/domain_capabilities.h
+++ b/src/conf/domain_capabilities.h
@@ -33,6 +33,7 @@ typedef virDomainCaps *virDomainCapsPtr;
 typedef struct _virDomainCapsEnum virDomainCapsEnum;
 typedef virDomainCapsEnum *virDomainCapsEnumPtr;
 struct _virDomainCapsEnum {
+    bool report; /* Whether the format the enum at all */
     unsigned int values; /* Bitmask of values supported in the corresponding enum */
 };
 
-- 
2.20.1




More information about the libvir-list mailing list