libvirt/src/lxc/lxc_monitor_protocol.x
Daniel P. Berrange 403594eb8c Fix generation of systemtap probes for RPC protocols
The naming used in the RPC protocols for the LXC monitor and
lock daemon confused the script used to generate systemtap
helper functions. Rename the LXC monitor protocol symbols to
reduce confusion. Adapt the gensystemtap.pl script to cope
with the LXC monitor / lock daemon naming conversions.

This has no functional impact on RPC wire protocol, since
names are only used in the C layer

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-03-14 12:42:22 +00:00

28 lines
708 B
C

/* -*- c -*-
* Define wire protocol for communication between the
* LXC driver in libvirtd, and the LXC controller in
* the libvirt_lxc helper program.
*/
enum virLXCMonitorExitStatus {
VIR_LXC_MONITOR_EXIT_STATUS_ERROR,
VIR_LXC_MONITOR_EXIT_STATUS_SHUTDOWN,
VIR_LXC_MONITOR_EXIT_STATUS_REBOOT
};
struct virLXCMonitorExitEventMsg {
enum 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 */
};