mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-02 19:31:18 +00:00
703d4ed594
As long as we guarantee RPC struct layout stability, we might as well also guarantee RPC enum value constancy. * src/Makefile.am (r1, r2, PDWTAGS): Adjust rule to pick up named and anonymous enums. * src/remote_protocol-structs: Add enum values. * src/qemu_protocol-structs: Likewise. * src/virnetprotocol-structs: Likewise.
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/* -*- c -*- */
|
|
enum virNetMessageType {
|
|
VIR_NET_CALL = 0,
|
|
VIR_NET_REPLY = 1,
|
|
VIR_NET_MESSAGE = 2,
|
|
VIR_NET_STREAM = 3,
|
|
};
|
|
enum virNetMessageStatus {
|
|
VIR_NET_OK = 0,
|
|
VIR_NET_ERROR = 1,
|
|
VIR_NET_CONTINUE = 2,
|
|
};
|
|
struct virNetMessageHeader {
|
|
u_int prog;
|
|
u_int vers;
|
|
int proc;
|
|
virNetMessageType type;
|
|
u_int serial;
|
|
virNetMessageStatus status;
|
|
};
|
|
struct virNetMessageNonnullDomain {
|
|
virNetMessageNonnullString name;
|
|
virNetMessageUUID uuid;
|
|
int id;
|
|
};
|
|
struct virNetMessageNonnullNetwork {
|
|
virNetMessageNonnullString name;
|
|
virNetMessageUUID uuid;
|
|
};
|
|
struct virNetMessageError {
|
|
int code;
|
|
int domain;
|
|
virNetMessageString message;
|
|
int level;
|
|
virNetMessageDomain dom;
|
|
virNetMessageString str1;
|
|
virNetMessageString str2;
|
|
virNetMessageString str3;
|
|
int int1;
|
|
int int2;
|
|
virNetMessageNetwork net;
|
|
};
|