libvirt/src/lxc/lxc_monitor_protocol.x
Jasper Lievisse Adriaanse 2b6f6ad64b Unify int types handling in protocol files
Some of the protocol files already include handing of the missing int
types such as xdr_uint64_t, some don't. To fix it everywhere, move out
of the appropriate defines to the utils/virxdrdefs.h file and include
it where needed.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
2016-01-11 19:56:06 +03:00

30 lines
729 B
C

/* -*- c -*-
* Define wire protocol for communication between the
* LXC driver in libvirtd, and the LXC controller in
* the libvirt_lxc helper program.
*/
%#include "virxdrdefs.h"
enum virLXCMonitorExitStatus {
VIR_LXC_MONITOR_EXIT_STATUS_ERROR,
VIR_LXC_MONITOR_EXIT_STATUS_SHUTDOWN,
VIR_LXC_MONITOR_EXIT_STATUS_REBOOT
};
struct virLXCMonitorExitEventMsg {
virLXCMonitorExitStatus status;
};
struct virLXCMonitorInitEventMsg {
unsigned hyper initpid;
};
const VIR_LXC_MONITOR_PROGRAM = 0x12341234;
const VIR_LXC_MONITOR_PROGRAM_VERSION = 1;
enum virLXCMonitorProcedure {
VIR_LXC_MONITOR_PROC_EXIT_EVENT = 1, /* skipgen skipgen */
VIR_LXC_MONITOR_PROC_INIT_EVENT = 2 /* skipgen skipgen */
};