34 #ifndef COROSYNC_QUORUM_H_DEFINED
35 #define COROSYNC_QUORUM_H_DEFINED
46 quorum_handle_t handle,
49 uint32_t view_list_entries,
64 quorum_handle_t *handle,
66 uint32_t *quorum_type);
72 quorum_handle_t handle);
81 quorum_handle_t handle,
88 quorum_handle_t handle,
96 quorum_handle_t handle,
103 quorum_handle_t handle,
104 unsigned int flags );
107 quorum_handle_t handle);
110 quorum_handle_t handle,
111 const void *context);
114 quorum_handle_t handle,
115 const void **context);
cs_error_t quorum_dispatch(quorum_handle_t handle, cs_dispatch_flags_t dispatch_types)
Dispatch messages and configuration changes.
cs_error_t quorum_trackstop(quorum_handle_t handle)
cs_error_t quorum_getquorate(quorum_handle_t handle, int *quorate)
Get quorum information.
cs_error_t quorum_context_get(quorum_handle_t handle, const void **context)
cs_error_t quorum_context_set(quorum_handle_t handle, const void *context)
cs_error_t quorum_fd_get(quorum_handle_t handle, int *fd)
Get a file descriptor on which to poll.
quorum_notification_fn_t quorum_notify_fn
cs_error_t quorum_trackstart(quorum_handle_t handle, unsigned int flags)
Track node and quorum changes.
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)
cs_error_t quorum_finalize(quorum_handle_t handle)
Close the quorum handle.
cs_error_t quorum_initialize(quorum_handle_t *handle, quorum_callbacks_t *callbacks, uint32_t *quorum_type)
Create a new quorum connection.