libvirt/src/lxc/lxc_monitor_protocol.x
Daniel P. Berrange 014afe6501 Rename lxc_protocol.x to lxc_monitor_protocol.x
To avoid confusion between the LXC driver <-> controller
monitor RPC protocol and the libvirt-lxc.so <-> libvirtd public
RPC protocol, rename the former to lxc_monitor_protocol.x

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-01-08 09:21:08 +00:00

28 lines
720 B
C

/* -*- c -*-
* Define wire protocol for communication between the
* LXC driver in libvirtd, and the LXC controller in
* the libvirt_lxc helper program.
*/
enum virLXCProtocolExitStatus {
VIR_LXC_PROTOCOL_EXIT_STATUS_ERROR,
VIR_LXC_PROTOCOL_EXIT_STATUS_SHUTDOWN,
VIR_LXC_PROTOCOL_EXIT_STATUS_REBOOT
};
struct virLXCProtocolExitEventMsg {
enum virLXCProtocolExitStatus status;
};
struct virLXCProtocolInitEventMsg {
unsigned hyper initpid;
};
const VIR_LXC_PROTOCOL_PROGRAM = 0x12341234;
const VIR_LXC_PROTOCOL_PROGRAM_VERSION = 1;
enum virLXCProtocolProcedure {
VIR_LXC_PROTOCOL_PROC_EXIT_EVENT = 1, /* skipgen skipgen */
VIR_LXC_PROTOCOL_PROC_INIT_EVENT = 2 /* skipgen skipgen */
};