mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-02 11:21:12 +00:00
014afe6501
To avoid confusion between the LXC driver <-> controller monitor RPC protocol and the libvirt-lxc.so <-> libvirtd public RPC protocol, rename the former to lxc_monitor_protocol.x Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
28 lines
720 B
C
28 lines
720 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 virLXCProtocolExitStatus {
|
|
VIR_LXC_PROTOCOL_EXIT_STATUS_ERROR,
|
|
VIR_LXC_PROTOCOL_EXIT_STATUS_SHUTDOWN,
|
|
VIR_LXC_PROTOCOL_EXIT_STATUS_REBOOT
|
|
};
|
|
|
|
struct virLXCProtocolExitEventMsg {
|
|
enum virLXCProtocolExitStatus status;
|
|
};
|
|
|
|
struct virLXCProtocolInitEventMsg {
|
|
unsigned hyper initpid;
|
|
};
|
|
|
|
const VIR_LXC_PROTOCOL_PROGRAM = 0x12341234;
|
|
const VIR_LXC_PROTOCOL_PROGRAM_VERSION = 1;
|
|
|
|
enum virLXCProtocolProcedure {
|
|
VIR_LXC_PROTOCOL_PROC_EXIT_EVENT = 1, /* skipgen skipgen */
|
|
VIR_LXC_PROTOCOL_PROC_INIT_EVENT = 2 /* skipgen skipgen */
|
|
};
|