mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
conf: domcaps: Add virCapsEnum 'report'
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. Acked-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
e3119a3323
commit
7128604328
@ -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 */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user