corosync  2.3.5-dirty
Data Structures | Functions
lib/cfg.c File Reference
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <pthread.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/un.h>
#include <sys/uio.h>
#include <qb/qbipcc.h>
#include <corosync/corotypes.h>
#include <corosync/corodefs.h>
#include <corosync/hdb.h>
#include <corosync/cfg.h>
#include <corosync/ipc_cfg.h>
#include "util.h"
Include dependency graph for lib/cfg.c:

Go to the source code of this file.

Data Structures

struct  cfg_inst
 

Functions

 DECLARE_HDB_DATABASE (cfg_hdb, cfg_inst_free)
 
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 response)
 
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)
 

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  response 
)
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 
)
DECLARE_HDB_DATABASE ( cfg_hdb  ,
cfg_inst_free   
)