libvirt/src/lxc_monitor_protocol-structs
Pavel Fedin 4d2cf054d4 Remove explicit enum from protocol structures
Explicit 'enum' keyword does not work with portablexdr-rpcgeb, causing its
parser to fail. Fix method is borrowed from virnetprotocol.x

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
2015-07-08 14:34:38 +02:00

17 lines
481 B
C

/* -*- c -*- */
enum virLXCMonitorExitStatus {
VIR_LXC_MONITOR_EXIT_STATUS_ERROR = 0,
VIR_LXC_MONITOR_EXIT_STATUS_SHUTDOWN = 1,
VIR_LXC_MONITOR_EXIT_STATUS_REBOOT = 2,
};
struct virLXCMonitorExitEventMsg {
virLXCMonitorExitStatus status;
};
struct virLXCMonitorInitEventMsg {
uint64_t initpid;
};
enum virLXCMonitorProcedure {
VIR_LXC_MONITOR_PROC_EXIT_EVENT = 1,
VIR_LXC_MONITOR_PROC_INIT_EVENT = 2,
};