corosync  2.3.5
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
coroapi.h File Reference
#include <config.h>
#include <stdio.h>
#include <sys/uio.h>
#include <corosync/hdb.h>
#include <qb/qbloop.h>
#include <corosync/swab.h>
Include dependency graph for coroapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mar_message_source_t
 
struct  corosync_tpg_group
 
struct  totem_ip_address
 
struct  memb_ring_id
 
struct  quorum_callin_functions
 
struct  corosync_api_v1
 
struct  corosync_lib_handler
 
struct  corosync_exec_handler
 
struct  corosync_service_engine_iface_ver0
 
struct  corosync_service_engine
 

Macros

#define TIMER_HANDLE_T   1
 
#define TOTEMIP_ADDRLEN   (sizeof(struct in6_addr))
 
#define INTERFACE_MAX   2
 
#define PROCESSOR_COUNT_MAX   384
 
#define MESSAGE_SIZE_MAX   1024*1024
 
#define MESSAGE_QUEUE_MAX   ((4 * MESSAGE_SIZE_MAX) / totem_config->net_mtu)
 
#define TOTEM_AGREED   0
 
#define TOTEM_SAFE   1
 
#define MILLI_2_NANO_SECONDS   1000000ULL
 
#define corosync_lib_flow_control   cs_lib_flow_control
 
#define COROSYNC_LIB_FLOW_CONTROL_REQUIRED   CS_LIB_FLOW_CONTROL_REQUIRED
 
#define COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED   CS_LIB_FLOW_CONTROL_NOT_REQUIRED
 
#define corosync_flow_control_state   cs_flow_control_state
 
#define CS_FLOW_CONTROL_STATE_DISABLED   CS_FLOW_CONTROL_STATE_DISABLED
 
#define CS_FLOW_CONTROL_STATE_ENABLED   CS_FLOW_CONTROL_STATE_ENABLED
 
#define corosync_fatal_error_t   cs_fatal_error_t;
 
#define corosync_fatal_error(err)   api->fatal_error ((err), __FILE__, __LINE__)
 
#define SERVICE_ID_MAKE(a, b)   ( ((a)<<16) | (b) )
 
#define SERVICE_HANDLER_MAXIMUM_COUNT   64
 
#define SERVICES_COUNT_MAX   64
 

Typedefs

typedef qb_loop_timer_handle corosync_timer_handle_t
 
typedef void(* quorum_callback_fn_t) (int quorate, void *context)
 
typedef void(* sync_callback_fn_t) (const unsigned int *view_list, size_t view_list_entries, int primary_designated, struct memb_ring_id *ring_id)
 

Enumerations

enum  totem_configuration_type { TOTEM_CONFIGURATION_REGULAR, TOTEM_CONFIGURATION_TRANSITIONAL, TOTEM_CONFIGURATION_REGULAR, TOTEM_CONFIGURATION_TRANSITIONAL }
 
enum  totem_callback_token_type { TOTEM_CALLBACK_TOKEN_RECEIVED = 1, TOTEM_CALLBACK_TOKEN_SENT = 2, TOTEM_CALLBACK_TOKEN_RECEIVED = 1, TOTEM_CALLBACK_TOKEN_SENT = 2 }
 
enum  cs_lib_flow_control { CS_LIB_FLOW_CONTROL_REQUIRED = 1, CS_LIB_FLOW_CONTROL_NOT_REQUIRED = 2 }
 
enum  cs_lib_allow_inquorate { CS_LIB_DISALLOW_INQUORATE = 0, CS_LIB_ALLOW_INQUORATE = 1 }
 
enum  cs_flow_control_state { CS_FLOW_CONTROL_STATE_DISABLED, CS_FLOW_CONTROL_STATE_ENABLED }
 
enum  cs_fatal_error_t {
  COROSYNC_FATAL_ERROR_EXIT = -1, COROSYNC_LIBAIS_SOCKET = -6, COROSYNC_LIBAIS_BIND = -7, COROSYNC_READKEY = -8,
  COROSYNC_INVALID_CONFIG = -9, COROSYNC_DYNAMICLOAD = -12, COROSYNC_OUT_OF_MEMORY = -15, COROSYNC_FATAL_ERR = -16
}
 

Functions

struct totem_ip_address __attribute__ ((packed))
 

Variables

unsigned int nodeid
 
unsigned short family
 
unsigned char addr [TOTEMIP_ADDRLEN]
 
struct totem_ip_address rep
 
unsigned long long seq
 
enum totem_configuration_type __attribute__
 

Macro Definition Documentation

#define corosync_fatal_error (   err)    api->fatal_error ((err), __FILE__, __LINE__)

Definition at line 377 of file coroapi.h.

#define corosync_fatal_error_t   cs_fatal_error_t;

Definition at line 157 of file coroapi.h.

#define corosync_flow_control_state   cs_flow_control_state

Definition at line 141 of file coroapi.h.

#define corosync_lib_flow_control   cs_lib_flow_control

Definition at line 127 of file coroapi.h.

#define COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED   CS_LIB_FLOW_CONTROL_NOT_REQUIRED

Definition at line 129 of file coroapi.h.

#define COROSYNC_LIB_FLOW_CONTROL_REQUIRED   CS_LIB_FLOW_CONTROL_REQUIRED

Definition at line 128 of file coroapi.h.

#define CS_FLOW_CONTROL_STATE_DISABLED   CS_FLOW_CONTROL_STATE_DISABLED

Definition at line 142 of file coroapi.h.

#define CS_FLOW_CONTROL_STATE_ENABLED   CS_FLOW_CONTROL_STATE_ENABLED

Definition at line 143 of file coroapi.h.

#define INTERFACE_MAX   2
#define MESSAGE_QUEUE_MAX   ((4 * MESSAGE_SIZE_MAX) / totem_config->net_mtu)

Definition at line 85 of file coroapi.h.

Referenced by totemsrp_initialize().

#define MESSAGE_SIZE_MAX   1024*1024

Definition at line 84 of file coroapi.h.

#define MILLI_2_NANO_SECONDS   1000000ULL

Definition at line 92 of file coroapi.h.

Referenced by mon_get_service_engine_ver0(), and wd_get_service_engine_ver0().

#define PROCESSOR_COUNT_MAX   384

Definition at line 83 of file coroapi.h.

Referenced by sync_init(), and totemsrp_ring_reenable().

#define SERVICE_HANDLER_MAXIMUM_COUNT   64

Definition at line 413 of file coroapi.h.

#define SERVICE_ID_MAKE (   a,
 
)    ( ((a)<<16) | (b) )

Definition at line 411 of file coroapi.h.

#define SERVICES_COUNT_MAX   64
#define TIMER_HANDLE_T   1

Definition at line 65 of file coroapi.h.

#define TOTEM_AGREED   0

Definition at line 89 of file coroapi.h.

#define TOTEM_SAFE   1

Definition at line 90 of file coroapi.h.

#define TOTEMIP_ADDRLEN   (sizeof(struct in6_addr))

Definition at line 73 of file coroapi.h.

Referenced by corosync_cfg_get_node_addrs(), and totemip_copy_endian_convert().

Typedef Documentation

typedef qb_loop_timer_handle corosync_timer_handle_t

Definition at line 64 of file coroapi.h.

typedef void(* quorum_callback_fn_t) (int quorate, void *context)

Definition at line 160 of file coroapi.h.

typedef void(* sync_callback_fn_t) (const unsigned int *view_list, size_t view_list_entries, int primary_designated, struct memb_ring_id *ring_id)

Definition at line 168 of file coroapi.h.

Enumeration Type Documentation

Enumerator
COROSYNC_FATAL_ERROR_EXIT 
COROSYNC_LIBAIS_SOCKET 
COROSYNC_LIBAIS_BIND 
COROSYNC_READKEY 
COROSYNC_INVALID_CONFIG 
COROSYNC_DYNAMICLOAD 
COROSYNC_OUT_OF_MEMORY 
COROSYNC_FATAL_ERR 

Definition at line 147 of file coroapi.h.

Enumerator
CS_FLOW_CONTROL_STATE_DISABLED 
CS_FLOW_CONTROL_STATE_ENABLED 

Definition at line 137 of file coroapi.h.

Enumerator
CS_LIB_DISALLOW_INQUORATE 
CS_LIB_ALLOW_INQUORATE 

Definition at line 131 of file coroapi.h.

Enumerator
CS_LIB_FLOW_CONTROL_REQUIRED 
CS_LIB_FLOW_CONTROL_NOT_REQUIRED 

Definition at line 123 of file coroapi.h.

Enumerator
TOTEM_CALLBACK_TOKEN_RECEIVED 
TOTEM_CALLBACK_TOKEN_SENT 
TOTEM_CALLBACK_TOKEN_RECEIVED 
TOTEM_CALLBACK_TOKEN_SENT 

Definition at line 117 of file coroapi.h.

Enumerator
TOTEM_CONFIGURATION_REGULAR 
TOTEM_CONFIGURATION_TRANSITIONAL 
TOTEM_CONFIGURATION_REGULAR 
TOTEM_CONFIGURATION_TRANSITIONAL 

Definition at line 110 of file coroapi.h.

Function Documentation

struct totem_ip_address __attribute__ ( (packed)  )

Variable Documentation

enum totem_configuration_type __attribute__
unsigned char addr[TOTEMIP_ADDRLEN]

Definition at line 67 of file coroapi.h.

Referenced by cpg_flow_control_state_get(), main_mcast(), and totemip_is_mcast().

unsigned short family
uint32_t nodeid
struct totem_ip_address rep

Definition at line 65 of file coroapi.h.

unsigned int seq

Definition at line 66 of file coroapi.h.