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
83 struct qb_ipc_request_header header __attribute__((aligned(8)));
91 struct qb_ipc_request_header header __attribute__((aligned(8)));
99 struct qb_ipc_request_header header __attribute__((aligned(8)));
108 struct qb_ipc_request_header header __attribute__((aligned(8)));
118 struct qb_ipc_request_header header __attribute__((aligned(8)));
127 struct qb_ipc_request_header header __attribute__((aligned(8)));
136 struct qb_ipc_request_header header __attribute__((aligned(8)));
144 struct qb_ipc_request_header header __attribute__((aligned(8)));
153 struct qb_ipc_request_header header __attribute__((aligned(8)));
160 struct qb_ipc_request_header header __attribute__((aligned(8)));
168 struct qb_ipc_response_header header __attribute__((aligned(8)));
171 #define VOTEQUORUM_INFO_TWONODE 1
172 #define VOTEQUORUM_INFO_QUORATE 2
173 #define VOTEQUORUM_INFO_WAIT_FOR_ALL 4
174 #define VOTEQUORUM_INFO_LAST_MAN_STANDING 8
175 #define VOTEQUORUM_INFO_AUTO_TIE_BREAKER 16
176 #define VOTEQUORUM_INFO_ALLOW_DOWNSCALE 32
177 #define VOTEQUORUM_INFO_QDEVICE_REGISTERED 64
178 #define VOTEQUORUM_INFO_QDEVICE_ALIVE 128
179 #define VOTEQUORUM_INFO_QDEVICE_CAST_VOTE 256
180 #define VOTEQUORUM_INFO_QDEVICE_MASTER_WINS 512
182 #define VOTEQUORUM_NODESTATE_MEMBER 1
183 #define VOTEQUORUM_NODESTATE_DEAD 2
184 #define VOTEQUORUM_NODESTATE_LEAVING 3
190 struct qb_ipc_response_header header __attribute__((aligned(8)));
215 struct qb_ipc_response_header header __attribute__((aligned(8)));
223 struct qb_ipc_response_header header __attribute__((aligned(8)));
234 struct qb_ipc_response_header header __attribute__((aligned(8)));
244 static inline void marshall_from_mar_votequorum_ring_id (
257 static inline void marshall_to_mar_votequorum_ring_id (