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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux