36 #ifndef COROSYNC_VOTEQUORUM_H_DEFINED
37 #define COROSYNC_VOTEQUORUM_H_DEFINED
45 #define VOTEQUORUM_INFO_TWONODE 1
46 #define VOTEQUORUM_INFO_QUORATE 2
47 #define VOTEQUORUM_INFO_WAIT_FOR_ALL 4
48 #define VOTEQUORUM_INFO_LAST_MAN_STANDING 8
49 #define VOTEQUORUM_INFO_AUTO_TIE_BREAKER 16
50 #define VOTEQUORUM_INFO_ALLOW_DOWNSCALE 32
51 #define VOTEQUORUM_INFO_QDEVICE_REGISTERED 64
52 #define VOTEQUORUM_INFO_QDEVICE_ALIVE 128
53 #define VOTEQUORUM_INFO_QDEVICE_CAST_VOTE 256
54 #define VOTEQUORUM_INFO_QDEVICE_MASTER_WINS 512
56 #define VOTEQUORUM_QDEVICE_NODEID 0
57 #define VOTEQUORUM_QDEVICE_MAX_NAME_LEN 255
58 #define VOTEQUORUM_QDEVICE_DEFAULT_TIMEOUT 10000
60 #define VOTEQUORUM_NODESTATE_MEMBER 1
61 #define VOTEQUORUM_NODESTATE_DEAD 2
62 #define VOTEQUORUM_NODESTATE_LEAVING 3
85 votequorum_handle_t handle,
88 uint32_t node_list_entries,
92 votequorum_handle_t handle,
106 votequorum_handle_t *handle,
113 votequorum_handle_t handle);
120 votequorum_handle_t handle,
130 votequorum_handle_t handle,
137 votequorum_handle_t handle,
145 votequorum_handle_t handle,
152 votequorum_handle_t handle,
160 votequorum_handle_t handle,
162 unsigned int flags );
165 votequorum_handle_t handle);
171 votequorum_handle_t handle,
175 votequorum_handle_t handle,
184 votequorum_handle_t handle,
191 votequorum_handle_t handle,
198 votequorum_handle_t handle,
206 votequorum_handle_t handle,
208 unsigned int cast_vote);
214 votequorum_handle_t handle,