Module Corosync_lib.Votequorum

val (>>=) : ('a, 'b) Stdlib.result -> ('a -> ('c, 'b) Stdlib.result) -> ('c, 'b) Stdlib.result
val votequorum_qdevice_max_name_len : int
val votequorum_handle_t : Unsigned.uint64 Ctypes.typ
type votequorum_node_t
val votequorm_node_t : votequorum_node_t Ctypes.structure Ctypes.typ
val vnode_nodeid : (Unsigned.uint32, votequorum_node_t Ctypes.structure) Ctypes.field
val vnode_state : (Unsigned.uint32, votequorum_node_t Ctypes.structure) Ctypes.field
type votequorum_ring_id_t
val votequorum_ring_id_t : votequorum_ring_id_t Ctypes.structure Ctypes.typ
val ring_nodeid : (Unsigned.uint32, votequorum_ring_id_t Ctypes.structure) Ctypes.field
val ring_seq : (Unsigned.uint64, votequorum_ring_id_t Ctypes.structure) Ctypes.field
val votequorum_quorum_notification_fn_t : (Unsigned.uint64 -> Unsigned.uint64 -> Unsigned.uint32 -> Unsigned.uint32 -> votequorum_node_t Ctypes.structure Ctypes_static.ptr -> unit Ctypes_static.ptr) Ctypes.fn
val votequorum_nodelist_notification_fn_t : (Unsigned.uint64 -> Unsigned.uint64 -> votequorum_ring_id_t Ctypes.structure -> Unsigned.uint32 -> unit Ctypes_static.ptr) Ctypes.fn
val votequorum_expectedvotes_notification_fn_t : (Unsigned.uint64 -> Unsigned.uint64 -> Unsigned.uint32 -> unit Ctypes_static.ptr) Ctypes.fn
type votequorum_callbacks_t
val votequorum_callbacks_t : votequorum_callbacks_t Ctypes.structure Ctypes.typ
val votequorum_quorum_notify_fn : (Unsigned.uint64 -> Unsigned.uint64 -> Unsigned.uint32 -> Unsigned.uint32 -> votequorum_node_t Ctypes.structure Ctypes_static.ptr -> unit Ctypes_static.ptr, votequorum_callbacks_t Ctypes.structure) Ctypes.field
val votequorum_expectedvotes_notify_fn : (Unsigned.uint64 -> Unsigned.uint64 -> votequorum_ring_id_t Ctypes.structure -> Unsigned.uint32 -> unit Ctypes_static.ptr, votequorum_callbacks_t Ctypes.structure) Ctypes.field
val votequorum_nodelist_notify_fn : (Unsigned.uint64 -> Unsigned.uint64 -> votequorum_ring_id_t Ctypes.structure -> Unsigned.uint32 -> unit Ctypes_static.ptr, votequorum_callbacks_t Ctypes.structure) Ctypes.field
type votequorum_info
val votequorum_info : votequorum_info Ctypes.structure Ctypes.typ
val node_id : (Unsigned.uint, votequorum_info Ctypes.structure) Ctypes.field
val node_state : (Unsigned.uint, votequorum_info Ctypes.structure) Ctypes.field
val node_votes : (Unsigned.uint, votequorum_info Ctypes.structure) Ctypes.field
val node_expected_votes : (Unsigned.uint, votequorum_info Ctypes.structure) Ctypes.field
val highest_votes : (Unsigned.uint, votequorum_info Ctypes.structure) Ctypes.field
val total_votes : (Unsigned.uint, votequorum_info Ctypes.structure) Ctypes.field
val quorum : (Unsigned.uint, votequorum_info Ctypes.structure) Ctypes.field
val flags : (Unsigned.uint, votequorum_info Ctypes.structure) Ctypes.field
val qdevice_votes : (Unsigned.uint, votequorum_info Ctypes.structure) Ctypes.field
val qdevice_name : (char Ctypes_static.carray, votequorum_info Ctypes.structure) Ctypes.field
val votequorum_initialize : Unsigned.uint64 Ctypes_static.ptr -> votequorum_callbacks_t Ctypes.structure Ctypes_static.ptr -> Corotypes.CsError.t
val votequorum_finalize : Unsigned.uint64 -> Corotypes.CsError.t
val votequorum_getinfo : Unsigned.uint64 -> Unsigned.uint -> votequorum_info Ctypes.structure Ctypes_static.ptr -> Corotypes.CsError.t
type vinfo = {
  1. node_id : Unsigned.uint;
  2. node_state : Unsigned.uint;
  3. node_votes : Unsigned.uint;
  4. node_expected_votes : Unsigned.uint;
  5. highest_votes : Unsigned.uint;
  6. total_votes : Unsigned.uint;
  7. quorum : Unsigned.uint;
  8. flags : Unsigned.uint;
  9. qdevice_votes : Unsigned.uint;
  10. qdevice_name : string;
}
val get_info : Unsigned.uint64 -> int -> (vinfo, Corotypes.CsError.t) Stdlib.result
val get_my_info : Unsigned.uint64 -> (vinfo, Corotypes.CsError.t) Stdlib.result
val with_handle : (Unsigned.uint64 -> ('a, Corotypes.CsError.t) Stdlib.result) -> ('b, Corotypes.CsError.t) Stdlib.result