36 #ifndef COROSYNC_VOTEQUORUM_H_DEFINED
37 #define COROSYNC_VOTEQUORUM_H_DEFINED
50 #define VOTEQUORUM_INFO_TWONODE 1
51 #define VOTEQUORUM_INFO_QUORATE 2
52 #define VOTEQUORUM_INFO_WAIT_FOR_ALL 4
53 #define VOTEQUORUM_INFO_LAST_MAN_STANDING 8
54 #define VOTEQUORUM_INFO_AUTO_TIE_BREAKER 16
55 #define VOTEQUORUM_INFO_ALLOW_DOWNSCALE 32
56 #define VOTEQUORUM_INFO_QDEVICE_REGISTERED 64
57 #define VOTEQUORUM_INFO_QDEVICE_ALIVE 128
58 #define VOTEQUORUM_INFO_QDEVICE_CAST_VOTE 256
59 #define VOTEQUORUM_INFO_QDEVICE_MASTER_WINS 512
61 #define VOTEQUORUM_QDEVICE_NODEID 0
62 #define VOTEQUORUM_QDEVICE_MAX_NAME_LEN 255
63 #define VOTEQUORUM_QDEVICE_DEFAULT_TIMEOUT 10000
64 #define VOTEQUORUM_QDEVICE_DEFAULT_SYNC_TIMEOUT 30000
66 #define VOTEQUORUM_NODESTATE_MEMBER 1
67 #define VOTEQUORUM_NODESTATE_DEAD 2
68 #define VOTEQUORUM_NODESTATE_LEAVING 3
108 votequorum_handle_t handle,
111 uint32_t node_list_entries,
115 votequorum_handle_t handle,
118 uint32_t node_list_entries,
119 uint32_t node_list[]);
125 votequorum_handle_t handle,
145 votequorum_handle_t *handle,
154 votequorum_handle_t handle);
163 votequorum_handle_t handle,
176 votequorum_handle_t handle,
187 votequorum_handle_t handle,
198 votequorum_handle_t handle,
209 votequorum_handle_t handle,
221 votequorum_handle_t handle,
231 votequorum_handle_t handle);
240 votequorum_handle_t handle,
250 votequorum_handle_t handle,
263 votequorum_handle_t handle,
273 votequorum_handle_t handle,
284 votequorum_handle_t handle,
297 votequorum_handle_t handle,
299 unsigned int cast_vote,
310 votequorum_handle_t handle,