2012-07-17 14:54:08 +00:00
|
|
|
/* -*- 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,
|
2012-07-23 11:25:37 +00:00
|
|
|
VIR_LXC_PROTOCOL_EXIT_STATUS_SHUTDOWN,
|
|
|
|
VIR_LXC_PROTOCOL_EXIT_STATUS_REBOOT
|
2012-07-17 14:54:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct virLXCProtocolExitEventMsg {
|
|
|
|
enum virLXCProtocolExitStatus status;
|
|
|
|
};
|
|
|
|
|
2012-11-20 17:49:25 +00:00
|
|
|
struct virLXCProtocolInitEventMsg {
|
|
|
|
unsigned hyper initpid;
|
|
|
|
};
|
|
|
|
|
2012-07-17 14:54:08 +00:00
|
|
|
const VIR_LXC_PROTOCOL_PROGRAM = 0x12341234;
|
|
|
|
const VIR_LXC_PROTOCOL_PROGRAM_VERSION = 1;
|
|
|
|
|
|
|
|
enum virLXCProtocolProcedure {
|
2012-11-20 17:49:25 +00:00
|
|
|
VIR_LXC_PROTOCOL_PROC_EXIT_EVENT = 1, /* skipgen skipgen */
|
|
|
|
VIR_LXC_PROTOCOL_PROC_INIT_EVENT = 2 /* skipgen skipgen */
|
2012-07-17 14:54:08 +00:00
|
|
|
};
|