提交 1ccf35b4 编写于 作者: P Pavel Hrdina

conf: introduce virDomainLifecycle enum to list all lifecycle types

Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 55c63295
...@@ -208,6 +208,11 @@ VIR_ENUM_IMPL(virDomainCapsFeature, VIR_DOMAIN_CAPS_FEATURE_LAST, ...@@ -208,6 +208,11 @@ VIR_ENUM_IMPL(virDomainCapsFeature, VIR_DOMAIN_CAPS_FEATURE_LAST,
"syslog", "syslog",
"wake_alarm") "wake_alarm")
VIR_ENUM_IMPL(virDomainLifecycle, VIR_DOMAIN_LIFECYCLE_LAST,
"poweroff",
"reboot",
"crash")
VIR_ENUM_IMPL(virDomainLifecycleAction, VIR_DOMAIN_LIFECYCLE_ACTION_LAST, VIR_ENUM_IMPL(virDomainLifecycleAction, VIR_DOMAIN_LIFECYCLE_ACTION_LAST,
"destroy", "destroy",
"restart", "restart",
......
...@@ -1791,6 +1791,14 @@ typedef enum { ...@@ -1791,6 +1791,14 @@ typedef enum {
VIR_DOMAIN_CAPS_FEATURE_LAST VIR_DOMAIN_CAPS_FEATURE_LAST
} virDomainCapsFeature; } virDomainCapsFeature;
typedef enum {
VIR_DOMAIN_LIFECYCLE_POWEROFF,
VIR_DOMAIN_LIFECYCLE_REBOOT,
VIR_DOMAIN_LIFECYCLE_CRASH,
VIR_DOMAIN_LIFECYCLE_LAST
} virDomainLifecycle;
typedef enum { typedef enum {
VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY, VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY,
VIR_DOMAIN_LIFECYCLE_ACTION_RESTART, VIR_DOMAIN_LIFECYCLE_ACTION_RESTART,
...@@ -3211,6 +3219,7 @@ VIR_ENUM_DECL(virDomainBoot) ...@@ -3211,6 +3219,7 @@ VIR_ENUM_DECL(virDomainBoot)
VIR_ENUM_DECL(virDomainFeature) VIR_ENUM_DECL(virDomainFeature)
VIR_ENUM_DECL(virDomainCapabilitiesPolicy) VIR_ENUM_DECL(virDomainCapabilitiesPolicy)
VIR_ENUM_DECL(virDomainCapsFeature) VIR_ENUM_DECL(virDomainCapsFeature)
VIR_ENUM_DECL(virDomainLifecycle)
VIR_ENUM_DECL(virDomainLifecycleAction) VIR_ENUM_DECL(virDomainLifecycleAction)
VIR_ENUM_DECL(virDomainLifecycleCrash) VIR_ENUM_DECL(virDomainLifecycleCrash)
VIR_ENUM_DECL(virDomainDevice) VIR_ENUM_DECL(virDomainDevice)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册