corosync  2.3.5
Data Structures | Macros | Typedefs | Enumerations
Cpg_corosync

Data Structures

struct  cpg_address
 
struct  cpg_name
 
struct  cpg_iteration_description_t
 
struct  cpg_ring_id
 
struct  cpg_callbacks_t
 
struct  cpg_model_data_t
 
struct  cpg_model_v1_data_t
 

Macros

#define CPG_MAX_NAME_LENGTH   128
 
#define CPG_MEMBERS_MAX   128
 
#define CPG_MODEL_V1_DELIVER_INITIAL_TOTEM_CONF   0x01
 

Typedefs

typedef uint64_t cpg_handle_t
 
typedef uint64_t cpg_iteration_handle_t
 
typedef void(* cpg_deliver_fn_t) (cpg_handle_t handle, const struct cpg_name *group_name, uint32_t nodeid, uint32_t pid, void *msg, size_t msg_len)
 
typedef void(* cpg_confchg_fn_t) (cpg_handle_t handle, const struct cpg_name *group_name, const struct cpg_address *member_list, size_t member_list_entries, const struct cpg_address *left_list, size_t left_list_entries, const struct cpg_address *joined_list, size_t joined_list_entries)
 
typedef void(* cpg_totem_confchg_fn_t) (cpg_handle_t handle, struct cpg_ring_id ring_id, uint32_t member_list_entries, const uint32_t *member_list)
 

Enumerations

enum  cpg_guarantee_t { CPG_TYPE_UNORDERED, CPG_TYPE_FIFO, CPG_TYPE_AGREED, CPG_TYPE_SAFE }
 
enum  cpg_flow_control_state_t { CPG_FLOW_CONTROL_DISABLED, CPG_FLOW_CONTROL_ENABLED }
 
enum  cpg_reason_t {
  CPG_REASON_JOIN = 1, CPG_REASON_LEAVE = 2, CPG_REASON_NODEDOWN = 3, CPG_REASON_NODEUP = 4,
  CPG_REASON_PROCDOWN = 5
}
 
enum  cpg_iteration_type_t { CPG_ITERATION_NAME_ONLY = 1, CPG_ITERATION_ONE_GROUP = 2, CPG_ITERATION_ALL = 3 }
 
enum  cpg_model_t { CPG_MODEL_V1 = 1 }
 

Detailed Description

Macro Definition Documentation

#define CPG_MAX_NAME_LENGTH   128

Definition at line 91 of file cpg.h.

Referenced by cpg_iteration_initialize(), cpg_join(), cpg_leave(), and cpg_membership_get().

#define CPG_MEMBERS_MAX   128

Definition at line 97 of file cpg.h.

Referenced by cpg_dispatch().

#define CPG_MODEL_V1_DELIVER_INITIAL_TOTEM_CONF   0x01

Definition at line 144 of file cpg.h.

Referenced by cpg_model_initialize().

Typedef Documentation

typedef void(* cpg_confchg_fn_t) (cpg_handle_t handle, const struct cpg_name *group_name, const struct cpg_address *member_list, size_t member_list_entries, const struct cpg_address *left_list, size_t left_list_entries, const struct cpg_address *joined_list, size_t joined_list_entries)

Definition at line 122 of file cpg.h.

typedef void(* cpg_deliver_fn_t) (cpg_handle_t handle, const struct cpg_name *group_name, uint32_t nodeid, uint32_t pid,void *msg, size_t msg_len)

Definition at line 110 of file cpg.h.

typedef uint64_t cpg_handle_t

Definition at line 50 of file cpg.h.

typedef uint64_t cpg_iteration_handle_t

Definition at line 52 of file cpg.h.

typedef void(* cpg_totem_confchg_fn_t) (cpg_handle_t handle, struct cpg_ring_id ring_id, uint32_t member_list_entries, const uint32_t *member_list)

Definition at line 129 of file cpg.h.

Enumeration Type Documentation

Enumerator
CPG_FLOW_CONTROL_DISABLED 

flow control is disabled - new messages may be sent

CPG_FLOW_CONTROL_ENABLED 

flow control is enabled - new messages should not be sent

Definition at line 61 of file cpg.h.

Enumerator
CPG_TYPE_UNORDERED 

not implemented

CPG_TYPE_FIFO 

same as agreed

CPG_TYPE_AGREED 
CPG_TYPE_SAFE 

not implemented

Definition at line 54 of file cpg.h.

Enumerator
CPG_ITERATION_NAME_ONLY 
CPG_ITERATION_ONE_GROUP 
CPG_ITERATION_ALL 

Definition at line 75 of file cpg.h.

Enumerator
CPG_MODEL_V1 

Definition at line 81 of file cpg.h.

Enumerator
CPG_REASON_JOIN 
CPG_REASON_LEAVE 
CPG_REASON_NODEDOWN 
CPG_REASON_NODEUP 
CPG_REASON_PROCDOWN 

Definition at line 67 of file cpg.h.