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.
|
|
|
|
*/
|
|
|
|
|
2013-03-13 19:19:22 +00:00
|
|
|
enum virLXCMonitorExitStatus {
|
|
|
|
VIR_LXC_MONITOR_EXIT_STATUS_ERROR,
|
|
|
|
VIR_LXC_MONITOR_EXIT_STATUS_SHUTDOWN,
|
|
|
|
VIR_LXC_MONITOR_EXIT_STATUS_REBOOT
|
2012-07-17 14:54:08 +00:00
|
|
|
};
|
|
|
|
|
2013-03-13 19:19:22 +00:00
|
|
|
struct virLXCMonitorExitEventMsg {
|
|
|
|
enum virLXCMonitorExitStatus status;
|
2012-07-17 14:54:08 +00:00
|
|
|
};
|
|
|
|
|
2013-03-13 19:19:22 +00:00
|
|
|
struct virLXCMonitorInitEventMsg {
|
2012-11-20 17:49:25 +00:00
|
|
|
unsigned hyper initpid;
|
|
|
|
};
|
|
|
|
|
2013-03-13 19:19:22 +00:00
|
|
|
const VIR_LXC_MONITOR_PROGRAM = 0x12341234;
|
|
|
|
const VIR_LXC_MONITOR_PROGRAM_VERSION = 1;
|
2012-07-17 14:54:08 +00:00
|
|
|
|
2013-03-13 19:19:22 +00:00
|
|
|
enum virLXCMonitorProcedure {
|
|
|
|
VIR_LXC_MONITOR_PROC_EXIT_EVENT = 1, /* skipgen skipgen */
|
|
|
|
VIR_LXC_MONITOR_PROC_INIT_EVENT = 2 /* skipgen skipgen */
|
2012-07-17 14:54:08 +00:00
|
|
|
};
|