mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-31 10:23:09 +00:00
2b6f6ad64b
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>
30 lines
729 B
C
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 */
|
|
};
|