35 #ifndef IPC_VOTEQUORUM_H_DEFINED
36 #define IPC_VOTEQUORUM_H_DEFINED
39 #define VOTEQUORUM_QDEVICE_NODEID 0
40 #define VOTEQUORUM_QDEVICE_MAX_NAME_LEN 255
41 #define VOTEQUORUM_QDEVICE_DEFAULT_TIMEOUT 10000
65 struct qb_ipc_request_header header __attribute__((aligned(8)));
70 struct qb_ipc_request_header header __attribute__((aligned(8)));
75 struct qb_ipc_request_header header __attribute__((aligned(8)));
81 struct qb_ipc_request_header header __attribute__((aligned(8)));
87 struct qb_ipc_request_header header __attribute__((aligned(8)));
93 struct qb_ipc_request_header header __attribute__((aligned(8)));
99 struct qb_ipc_request_header header __attribute__((aligned(8)));
104 struct qb_ipc_request_header header __attribute__((aligned(8)));
110 struct qb_ipc_request_header header __attribute__((aligned(8)));
114 struct qb_ipc_request_header header __attribute__((aligned(8)));
119 struct qb_ipc_response_header header __attribute__((aligned(8)));
122 #define VOTEQUORUM_INFO_TWONODE 1
123 #define VOTEQUORUM_INFO_QUORATE 2
124 #define VOTEQUORUM_INFO_WAIT_FOR_ALL 4
125 #define VOTEQUORUM_INFO_LAST_MAN_STANDING 8
126 #define VOTEQUORUM_INFO_AUTO_TIE_BREAKER 16
127 #define VOTEQUORUM_INFO_ALLOW_DOWNSCALE 32
128 #define VOTEQUORUM_INFO_QDEVICE_REGISTERED 64
129 #define VOTEQUORUM_INFO_QDEVICE_ALIVE 128
130 #define VOTEQUORUM_INFO_QDEVICE_CAST_VOTE 256
131 #define VOTEQUORUM_INFO_QDEVICE_MASTER_WINS 512
133 #define VOTEQUORUM_NODESTATE_MEMBER 1
134 #define VOTEQUORUM_NODESTATE_DEAD 2
135 #define VOTEQUORUM_NODESTATE_LEAVING 3
138 struct qb_ipc_response_header header __attribute__((aligned(8)));
157 struct qb_ipc_response_header header __attribute__((aligned(8)));
165 struct qb_ipc_response_header header __attribute__((aligned(8)));
char name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
char newname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
struct qb_ipc_response_header header __attribute__((aligned(8)))
char name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
char qdevice_name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
unsigned int highest_expected
char name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
struct qb_ipc_response_header header __attribute__((aligned(8)))
unsigned int expected_votes
char name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
unsigned int qdevice_votes
#define VOTEQUORUM_QDEVICE_MAX_NAME_LEN
char oldname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
unsigned int expected_votes