qemu: monitor: Split up enum strings definitions

The VIR_ENUM_IMPL macros directly above them list one string per line.
Use the same also for qemuMonitorMigrationStatus and
qemuMonitorVMStatus.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2022-07-25 14:14:56 +02:00
parent ef0fef79e7
commit 30a067d94c

View File

@ -144,20 +144,37 @@ VIR_ENUM_IMPL(qemuMonitorCPUProperty,
VIR_ENUM_IMPL(qemuMonitorMigrationStatus,
QEMU_MONITOR_MIGRATION_STATUS_LAST,
"inactive", "setup",
"active", "pre-switchover",
"device", "postcopy-active",
"postcopy-paused", "postcopy-recover",
"completed", "failed",
"cancelling", "cancelled",
"inactive",
"setup",
"active",
"pre-switchover",
"device",
"postcopy-active",
"postcopy-paused",
"postcopy-recover",
"completed",
"failed",
"cancelling",
"cancelled",
"wait-unplug",
);
VIR_ENUM_IMPL(qemuMonitorVMStatus,
QEMU_MONITOR_VM_STATUS_LAST,
"debug", "inmigrate", "internal-error", "io-error", "paused",
"postmigrate", "prelaunch", "finish-migrate", "restore-vm",
"running", "save-vm", "shutdown", "watchdog", "guest-panicked",
"debug",
"inmigrate",
"internal-error",
"io-error",
"paused",
"postmigrate",
"prelaunch",
"finish-migrate",
"restore-vm",
"running",
"save-vm",
"shutdown",
"watchdog",
"guest-panicked",
);
typedef enum {