diff mbox series

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

Message ID 625eca459817ea253c1b2a0f60961935b56b9e13.1551914794.git.crobinso@redhat.com
State Accepted
Commit 712860432815cbeb75ea6d7c75e0109335b424f4
Headers show
Series domcaps: use virTristateBool | expand

Commit Message

Cole Robinson March 6, 2019, 11:37 p.m. UTC
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@redhat.com>

---
 src/conf/domain_capabilities.h | 1 +
 1 file changed, 1 insertion(+)

-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
diff mbox series

Patch

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 */
 };