[PATCH 03/14] conf: introduce virDomainLifecycle enum to list all lifecycle types

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

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 5 +++++
 src/conf/domain_conf.h | 9 +++++++++
 2 files changed, 14 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 39a4c4d80f..e9d7f8911e 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -208,6 +208,11 @@ VIR_ENUM_IMPL(virDomainCapsFeature, VIR_DOMAIN_CAPS_FEATURE_LAST,
               "syslog",
               "wake_alarm")
 
+VIR_ENUM_IMPL(virDomainLifecycle, VIR_DOMAIN_LIFECYCLE_LAST,
+              "poweroff",
+              "reboot",
+              "crash")
+
 VIR_ENUM_IMPL(virDomainLifecycleAction, VIR_DOMAIN_LIFECYCLE_ACTION_LAST,
               "destroy",
               "restart",
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index a284a40f80..bc03c6ec17 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -1792,6 +1792,14 @@ typedef enum {
 } virDomainCapsFeature;
 
 typedef enum {
+    VIR_DOMAIN_LIFECYCLE_POWEROFF,
+    VIR_DOMAIN_LIFECYCLE_REBOOT,
+    VIR_DOMAIN_LIFECYCLE_CRASH,
+
+    VIR_DOMAIN_LIFECYCLE_LAST
+} virDomainLifecycle;
+
+typedef enum {
     VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY,
     VIR_DOMAIN_LIFECYCLE_ACTION_RESTART,
     VIR_DOMAIN_LIFECYCLE_ACTION_RESTART_RENAME,
@@ -3211,6 +3219,7 @@ VIR_ENUM_DECL(virDomainBoot)
 VIR_ENUM_DECL(virDomainFeature)
 VIR_ENUM_DECL(virDomainCapabilitiesPolicy)
 VIR_ENUM_DECL(virDomainCapsFeature)
+VIR_ENUM_DECL(virDomainLifecycle)
 VIR_ENUM_DECL(virDomainLifecycleAction)
 VIR_ENUM_DECL(virDomainLifecycleCrash)
 VIR_ENUM_DECL(virDomainDevice)
-- 
2.13.6

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