corosync
2.3.4
|
#include <stdint.h>
#include <errno.h>
#include <time.h>
#include <sys/time.h>
Go to the source code of this file.
Data Structures | |
struct | cs_name_t |
struct | cs_version_t |
Macros | |
#define | CS_FALSE 0 |
#define | CS_TRUE !CS_FALSE |
#define | CS_MAX_NAME_LENGTH 256 |
#define | CS_TIME_END ((cs_time_t)0x7FFFFFFFFFFFFFFFULL) |
#define | CS_MAX(x, y) (((x) > (y)) ? (x) : (y)) |
#define | CS_TRACK_CURRENT 0x01 |
#define | CS_TRACK_CHANGES 0x02 |
#define | CS_TRACK_CHANGES_ONLY 0x04 |
#define | CS_IPC_TIMEOUT_MS -1 |
#define | CS_TIME_MS_IN_SEC 1000ULL |
#define | CS_TIME_US_IN_SEC 1000000ULL |
#define | CS_TIME_NS_IN_SEC 1000000000ULL |
#define | CS_TIME_US_IN_MSEC 1000ULL |
#define | CS_TIME_NS_IN_MSEC 1000000ULL |
#define | CS_TIME_NS_IN_USEC 1000ULL |
Typedefs | |
typedef int64_t | cs_time_t |
Enumerations | |
enum | cs_dispatch_flags_t { CS_DISPATCH_ONE = 1, CS_DISPATCH_ALL = 2, CS_DISPATCH_BLOCKING = 3, CS_DISPATCH_ONE_NONBLOCKING = 4 } |
enum | cs_error_t { CS_OK = 1, CS_ERR_LIBRARY = 2, CS_ERR_VERSION = 3, CS_ERR_INIT = 4, CS_ERR_TIMEOUT = 5, CS_ERR_TRY_AGAIN = 6, CS_ERR_INVALID_PARAM = 7, CS_ERR_NO_MEMORY = 8, CS_ERR_BAD_HANDLE = 9, CS_ERR_BUSY = 10, CS_ERR_ACCESS = 11, CS_ERR_NOT_EXIST = 12, CS_ERR_NAME_TOO_LONG = 13, CS_ERR_EXIST = 14, CS_ERR_NO_SPACE = 15, CS_ERR_INTERRUPT = 16, CS_ERR_NAME_NOT_FOUND = 17, CS_ERR_NO_RESOURCES = 18, CS_ERR_NOT_SUPPORTED = 19, CS_ERR_BAD_OPERATION = 20, CS_ERR_FAILED_OPERATION = 21, CS_ERR_MESSAGE_ERROR = 22, CS_ERR_QUEUE_FULL = 23, CS_ERR_QUEUE_NOT_AVAILABLE = 24, CS_ERR_BAD_FLAGS = 25, CS_ERR_TOO_BIG = 26, CS_ERR_NO_SECTIONS = 27, CS_ERR_CONTEXT_NOT_FOUND = 28, CS_ERR_TOO_MANY_GROUPS = 30, CS_ERR_SECURITY = 100 } |
Functions | |
cs_error_t | qb_to_cs_error (int result) |
const char * | cs_strerror (cs_error_t err) |
cs_error_t | hdb_error_to_cs (int res) |
#define CS_FALSE 0 |
Definition at line 50 of file corotypes.h.
Referenced by icmap_is_key_ro().
#define CS_IPC_TIMEOUT_MS -1 |
Definition at line 111 of file corotypes.h.
Referenced by cmap_delete(), cmap_get(), cmap_iter_finalize(), cmap_iter_init(), cmap_iter_next(), cmap_set(), cmap_track_add(), cmap_track_delete(), corosync_cfg_get_node_addrs(), corosync_cfg_kill_node(), corosync_cfg_local_get(), corosync_cfg_reload_config(), corosync_cfg_replyto_shutdown(), corosync_cfg_ring_reenable(), corosync_cfg_ring_status_get(), corosync_cfg_try_shutdown(), quorum_getquorate(), quorum_trackstart(), quorum_trackstop(), votequorum_getinfo(), votequorum_qdevice_master_wins(), votequorum_qdevice_poll(), votequorum_qdevice_register(), votequorum_qdevice_unregister(), votequorum_qdevice_update(), votequorum_setexpected(), votequorum_setvotes(), votequorum_trackstart(), and votequorum_trackstop().
#define CS_MAX | ( | x, | |
y | |||
) | (((x) > (y)) ? (x) : (y)) |
Definition at line 54 of file corotypes.h.
#define CS_MAX_NAME_LENGTH 256 |
Definition at line 52 of file corotypes.h.
Referenced by cmap_delete(), cmap_get(), cmap_iter_init(), cmap_set(), cmap_track_add(), corosync_cfg_kill_node(), getcs_name_t(), and setcs_name_t().
#define CS_TIME_END ((cs_time_t)0x7FFFFFFFFFFFFFFFULL) |
Definition at line 53 of file corotypes.h.
#define CS_TIME_MS_IN_SEC 1000ULL |
Definition at line 113 of file corotypes.h.
#define CS_TIME_NS_IN_MSEC 1000000ULL |
Definition at line 117 of file corotypes.h.
#define CS_TIME_NS_IN_SEC 1000000000ULL |
Definition at line 115 of file corotypes.h.
#define CS_TIME_NS_IN_USEC 1000ULL |
Definition at line 118 of file corotypes.h.
#define CS_TIME_US_IN_MSEC 1000ULL |
Definition at line 116 of file corotypes.h.
#define CS_TIME_US_IN_SEC 1000000ULL |
Definition at line 114 of file corotypes.h.
#define CS_TRACK_CHANGES 0x02 |
Definition at line 75 of file corotypes.h.
Referenced by sam_initialize().
#define CS_TRACK_CHANGES_ONLY 0x04 |
Definition at line 76 of file corotypes.h.
#define CS_TRACK_CURRENT 0x01 |
Definition at line 74 of file corotypes.h.
#define CS_TRUE !CS_FALSE |
Definition at line 51 of file corotypes.h.
Referenced by icmap_is_key_ro().
typedef int64_t cs_time_t |
Definition at line 48 of file corotypes.h.
enum cs_dispatch_flags_t |
Enumerator | |
---|---|
CS_DISPATCH_ONE | |
CS_DISPATCH_ALL | |
CS_DISPATCH_BLOCKING | |
CS_DISPATCH_ONE_NONBLOCKING |
Definition at line 67 of file corotypes.h.
enum cs_error_t |
Definition at line 78 of file corotypes.h.
const char* cs_strerror | ( | cs_error_t | err | ) |
cs_error_t hdb_error_to_cs | ( | int | res | ) |
cs_error_t qb_to_cs_error | ( | int | result | ) |
Referenced by cmap_delete(), cmap_dispatch(), cmap_fd_get(), cmap_get(), cmap_initialize(), cmap_iter_finalize(), cmap_iter_init(), cmap_iter_next(), cmap_set(), cmap_track_add(), cmap_track_delete(), corosync_cfg_dispatch(), corosync_cfg_fd_get(), corosync_cfg_get_node_addrs(), corosync_cfg_initialize(), corosync_cfg_kill_node(), corosync_cfg_local_get(), corosync_cfg_reload_config(), corosync_cfg_replyto_shutdown(), corosync_cfg_ring_reenable(), corosync_cfg_ring_status_get(), corosync_cfg_try_shutdown(), cpg_dispatch(), cpg_fd_get(), cpg_iteration_next(), cpg_mcast_joined(), cpg_model_initialize(), icmap_init_r(), icmap_track_add(), icmap_track_delete(), quorum_dispatch(), quorum_fd_get(), quorum_getquorate(), quorum_initialize(), quorum_trackstart(), quorum_trackstop(), votequorum_dispatch(), votequorum_fd_get(), votequorum_getinfo(), votequorum_initialize(), votequorum_qdevice_master_wins(), votequorum_qdevice_poll(), votequorum_qdevice_register(), votequorum_qdevice_unregister(), votequorum_qdevice_update(), votequorum_setexpected(), votequorum_setvotes(), votequorum_trackstart(), and votequorum_trackstop().