1 /* -*- c -*- 2 * Define wire protocol for communication between the 3 * LXC driver in libvirtd, and the LXC controller in 4 * the libvirt_lxc helper program. 5 */ 6 7 %#include "virxdrdefs.h" 8 9 enum virLXCMonitorExitStatus { 10 VIR_LXC_MONITOR_EXIT_STATUS_ERROR, 11 VIR_LXC_MONITOR_EXIT_STATUS_SHUTDOWN, 12 VIR_LXC_MONITOR_EXIT_STATUS_REBOOT 13 }; 14 15 struct virLXCMonitorExitEventMsg { 16 virLXCMonitorExitStatus status; 17 }; 18 19 struct virLXCMonitorInitEventMsg { 20 unsigned hyper initpid; 21 }; 22 23 const VIR_LXC_MONITOR_PROGRAM = 0x12341234; 24 const VIR_LXC_MONITOR_PROGRAM_VERSION = 1; 25 26 enum virLXCMonitorProcedure { 27 VIR_LXC_MONITOR_PROC_EXIT_EVENT = 1, /* skipgen skipgen */ 28 VIR_LXC_MONITOR_PROC_INIT_EVENT = 2 /* skipgen skipgen */ 29 }; 30