mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
conf: add typedef for anonymous enum used for memballoon device model
For some reason the values of memballoon model are set using an anonymous enum, making it impossible to perform nice tricks like demanding there are cases for all possible values in a switch. This patch turns the anonymous enum into virDomainMemballoonModel.
This commit is contained in:
parent
ac47e4a622
commit
9b4122bf2e
@ -1537,13 +1537,13 @@ struct _virDomainRedirFilterDef {
|
|||||||
virDomainRedirFilterUSBDevDefPtr *usbdevs;
|
virDomainRedirFilterUSBDevDefPtr *usbdevs;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_MEMBALLOON_MODEL_VIRTIO,
|
VIR_DOMAIN_MEMBALLOON_MODEL_VIRTIO,
|
||||||
VIR_DOMAIN_MEMBALLOON_MODEL_XEN,
|
VIR_DOMAIN_MEMBALLOON_MODEL_XEN,
|
||||||
VIR_DOMAIN_MEMBALLOON_MODEL_NONE,
|
VIR_DOMAIN_MEMBALLOON_MODEL_NONE,
|
||||||
|
|
||||||
VIR_DOMAIN_MEMBALLOON_MODEL_LAST
|
VIR_DOMAIN_MEMBALLOON_MODEL_LAST
|
||||||
};
|
} virDomainMemballoonModel;
|
||||||
|
|
||||||
struct _virDomainMemballoonDef {
|
struct _virDomainMemballoonDef {
|
||||||
int model;
|
int model;
|
||||||
|
Loading…
Reference in New Issue
Block a user