34 #ifndef COROSYNC_QUORUM_H_DEFINED
35 #define COROSYNC_QUORUM_H_DEFINED
52 quorum_handle_t handle,
55 uint32_t view_list_entries,
77 quorum_handle_t *handle,
79 uint32_t *quorum_type);
87 quorum_handle_t handle);
99 quorum_handle_t handle,
109 quorum_handle_t handle,
119 quorum_handle_t handle,
129 quorum_handle_t handle,
130 unsigned int flags );
138 quorum_handle_t handle);
147 quorum_handle_t handle,
148 const void *context);
157 quorum_handle_t handle,
158 const void **context);
The quorum_callbacks_t struct.
cs_error_t quorum_fd_get(quorum_handle_t handle, int *fd)
Get a file descriptor on which to poll.
cs_error_t
The cs_error_t enum.
cs_dispatch_flags_t
The cs_dispatch_flags_t enum.
cs_error_t quorum_context_get(quorum_handle_t handle, const void **context)
quorum_context_get
uint64_t quorum_handle_t
quorum_handle_t
cs_error_t quorum_getquorate(quorum_handle_t handle, int *quorate)
Get quorum information.
cs_error_t quorum_context_set(quorum_handle_t handle, const void *context)
quorum_context_set
cs_error_t quorum_dispatch(quorum_handle_t handle, cs_dispatch_flags_t dispatch_types)
Dispatch messages and configuration changes.
cs_error_t quorum_initialize(quorum_handle_t *handle, quorum_callbacks_t *callbacks, uint32_t *quorum_type)
Create a new quorum connection.
quorum_notification_fn_t quorum_notify_fn
cs_error_t quorum_trackstop(quorum_handle_t handle)
quorum_trackstop
unsigned long long ring_seq
void(* quorum_notification_fn_t)(quorum_handle_t handle, uint32_t quorate, uint64_t ring_seq, uint32_t view_list_entries, uint32_t *view_list)
The quorum_notification_fn_t callback.
cs_error_t quorum_trackstart(quorum_handle_t handle, unsigned int flags)
Track node and quorum changes.
cs_error_t quorum_finalize(quorum_handle_t handle)
Close the quorum handle.