corosync  2.3.2
Data Structures | Typedefs | Enumerations | Functions
cfg.h File Reference
#include <netinet/in.h>
#include <corosync/corotypes.h>
Include dependency graph for cfg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  corosync_cfg_callbacks_t
 
struct  corosync_cfg_node_address_t
 A node address. More...
 

Typedefs

typedef uint64_t corosync_cfg_handle_t
 
typedef void(* corosync_cfg_shutdown_callback_t )(corosync_cfg_handle_t cfg_handle, corosync_cfg_shutdown_flags_t flags)
 

Enumerations

enum  corosync_cfg_shutdown_flags_t { COROSYNC_CFG_SHUTDOWN_FLAG_REQUEST = 0, COROSYNC_CFG_SHUTDOWN_FLAG_REGARDLESS = 1, COROSYNC_CFG_SHUTDOWN_FLAG_IMMEDIATE = 2 }
 Shutdown types. More...
 
enum  corosync_cfg_shutdown_reply_flags_t { COROSYNC_CFG_SHUTDOWN_FLAG_NO = 0, COROSYNC_CFG_SHUTDOWN_FLAG_YES = 1 }
 

Functions

cs_error_t corosync_cfg_initialize (corosync_cfg_handle_t *cfg_handle, const corosync_cfg_callbacks_t *cfg_callbacks)
 
cs_error_t corosync_cfg_fd_get (corosync_cfg_handle_t cfg_handle, int32_t *selection_fd)
 
cs_error_t corosync_cfg_dispatch (corosync_cfg_handle_t cfg_handle, cs_dispatch_flags_t dispatch_flags)
 
cs_error_t corosync_cfg_finalize (corosync_cfg_handle_t cfg_handle)
 
cs_error_t corosync_cfg_ring_status_get (corosync_cfg_handle_t cfg_handle, char ***interface_names, char ***status, unsigned int *interface_count)
 
cs_error_t corosync_cfg_ring_reenable (corosync_cfg_handle_t cfg_handle)
 
cs_error_t corosync_cfg_kill_node (corosync_cfg_handle_t cfg_handle, unsigned int nodeid, const char *reason)
 
cs_error_t corosync_cfg_try_shutdown (corosync_cfg_handle_t cfg_handle, corosync_cfg_shutdown_flags_t flags)
 
cs_error_t corosync_cfg_replyto_shutdown (corosync_cfg_handle_t cfg_handle, corosync_cfg_shutdown_reply_flags_t flags)
 
cs_error_t corosync_cfg_get_node_addrs (corosync_cfg_handle_t cfg_handle, int nodeid, size_t max_addrs, int *num_addrs, corosync_cfg_node_address_t *addrs)
 
cs_error_t corosync_cfg_local_get (corosync_cfg_handle_t handle, unsigned int *local_nodeid)
 
cs_error_t corosync_cfg_reload_config (corosync_cfg_handle_t handle)
 

Typedef Documentation

typedef uint64_t corosync_cfg_handle_t

Definition at line 41 of file cfg.h.

typedef void(* corosync_cfg_shutdown_callback_t)(corosync_cfg_handle_t cfg_handle, corosync_cfg_shutdown_flags_t flags)

Definition at line 68 of file cfg.h.

Enumeration Type Documentation

Shutdown types.

Enumerator
COROSYNC_CFG_SHUTDOWN_FLAG_REQUEST 

REQUEST is the normal shutdown.

Other daemons will be consulted.

COROSYNC_CFG_SHUTDOWN_FLAG_REGARDLESS 

REGARDLESS will tell other daemons but ignore their opinions.

COROSYNC_CFG_SHUTDOWN_FLAG_IMMEDIATE 

IMMEDIATE will shut down straight away (but still tell other nodes).

Definition at line 46 of file cfg.h.

Enumerator
COROSYNC_CFG_SHUTDOWN_FLAG_NO 
COROSYNC_CFG_SHUTDOWN_FLAG_YES 

Definition at line 63 of file cfg.h.

Function Documentation

cs_error_t corosync_cfg_dispatch ( corosync_cfg_handle_t  cfg_handle,
cs_dispatch_flags_t  dispatch_flags 
)
cs_error_t corosync_cfg_fd_get ( corosync_cfg_handle_t  cfg_handle,
int32_t *  selection_fd 
)

Definition at line 126 of file lib/cfg.c.

References cfg_inst::c, CS_OK, hdb_error_to_cs(), and qb_to_cs_error().

cs_error_t corosync_cfg_finalize ( corosync_cfg_handle_t  cfg_handle)

Definition at line 254 of file lib/cfg.c.

References CS_ERR_BAD_HANDLE, CS_OK, cfg_inst::finalize, and hdb_error_to_cs().

cs_error_t corosync_cfg_get_node_addrs ( corosync_cfg_handle_t  cfg_handle,
int  nodeid,
size_t  max_addrs,
int *  num_addrs,
corosync_cfg_node_address_t addrs 
)
cs_error_t corosync_cfg_initialize ( corosync_cfg_handle_t cfg_handle,
const corosync_cfg_callbacks_t cfg_callbacks 
)
cs_error_t corosync_cfg_kill_node ( corosync_cfg_handle_t  cfg_handle,
unsigned int  nodeid,
const char *  reason 
)
cs_error_t corosync_cfg_local_get ( corosync_cfg_handle_t  handle,
unsigned int *  local_nodeid 
)
cs_error_t corosync_cfg_reload_config ( corosync_cfg_handle_t  handle)
cs_error_t corosync_cfg_replyto_shutdown ( corosync_cfg_handle_t  cfg_handle,
corosync_cfg_shutdown_reply_flags_t  flags 
)
cs_error_t corosync_cfg_ring_reenable ( corosync_cfg_handle_t  cfg_handle)
cs_error_t corosync_cfg_ring_status_get ( corosync_cfg_handle_t  cfg_handle,
char ***  interface_names,
char ***  status,
unsigned int *  interface_count 
)
cs_error_t corosync_cfg_try_shutdown ( corosync_cfg_handle_t  cfg_handle,
corosync_cfg_shutdown_flags_t  flags 
)