mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Remove VIR_DOMAIN_SHUTDOWN_CRASHED from public API
The VIR_DOMAIN_SHUTDOWN_CRASHED state constant does not appear
to be used in the QEMU code anyway. It also doesn't make much
(any) sense, since the 'shutdown' state is a transient state
between 'running' and 'shutoff' and when a guest crashes, it
does not end up in a 'shutdown' state, only 'shutoff'.
It was added in commit 14e7e0ae8d
which post-dates v1.1.0, so is safe to remove before 1.1.1
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
9ed3e6c117
commit
8c20d3f8e7
@ -191,7 +191,6 @@ typedef enum {
|
||||
typedef enum {
|
||||
VIR_DOMAIN_SHUTDOWN_UNKNOWN = 0, /* the reason is unknown */
|
||||
VIR_DOMAIN_SHUTDOWN_USER = 1, /* shutting down on user request */
|
||||
VIR_DOMAIN_SHUTDOWN_CRASHED = 2, /* domain crashed */
|
||||
|
||||
#ifdef VIR_ENUM_SENTINELS
|
||||
VIR_DOMAIN_SHUTDOWN_LAST
|
||||
|
@ -667,8 +667,7 @@ VIR_ENUM_IMPL(virDomainPausedReason, VIR_DOMAIN_PAUSED_LAST,
|
||||
|
||||
VIR_ENUM_IMPL(virDomainShutdownReason, VIR_DOMAIN_SHUTDOWN_LAST,
|
||||
"unknown",
|
||||
"user",
|
||||
"crashed")
|
||||
"user")
|
||||
|
||||
VIR_ENUM_IMPL(virDomainShutoffReason, VIR_DOMAIN_SHUTOFF_LAST,
|
||||
"unknown",
|
||||
|
@ -240,8 +240,6 @@ vshDomainStateReasonToString(int state, int reason)
|
||||
switch ((virDomainShutdownReason) reason) {
|
||||
case VIR_DOMAIN_SHUTDOWN_USER:
|
||||
return N_("user");
|
||||
case VIR_DOMAIN_SHUTDOWN_CRASHED:
|
||||
return N_("crashed");
|
||||
case VIR_DOMAIN_SHUTDOWN_UNKNOWN:
|
||||
case VIR_DOMAIN_SHUTDOWN_LAST:
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user