corosync 3.1.7
|
#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 |
The cs_name_t struct. More... | |
struct | cs_version_t |
The cs_version_t struct. More... | |
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_PRI_NODE_ID "%" PRIu32 |
#define | CS_PRI_NODE_ID_PADDED "%10" PRIu32 |
#define | CS_PRI_RING_ID_SEQ "%" PRIx64 |
#define | CS_PRI_RING_ID "%" PRIx32 ".%" PRIx64 |
#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 |
cs_time_t More... | |
Enumerations | |
enum | cs_dispatch_flags_t { CS_DISPATCH_ONE = 1 , CS_DISPATCH_ALL = 2 , CS_DISPATCH_BLOCKING = 3 , CS_DISPATCH_ONE_NONBLOCKING = 4 } |
The cs_dispatch_flags_t enum. More... | |
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 } |
The cs_error_t enum. More... | |
Functions | |
cs_error_t | qb_to_cs_error (int result) |
qb_to_cs_error More... | |
const char * | cs_strerror (cs_error_t err) |
cs_strerror More... | |
cs_error_t | hdb_error_to_cs (int res) |
hdb_error_to_cs More... | |
#define CS_FALSE 0 |
Definition at line 53 of file corotypes.h.
#define CS_IPC_TIMEOUT_MS -1 |
Definition at line 131 of file corotypes.h.
#define CS_MAX | ( | x, | |
y | |||
) | (((x) > (y)) ? (x) : (y)) |
Definition at line 57 of file corotypes.h.
#define CS_MAX_NAME_LENGTH 256 |
Definition at line 55 of file corotypes.h.
#define CS_PRI_NODE_ID "%" PRIu32 |
Definition at line 59 of file corotypes.h.
#define CS_PRI_NODE_ID_PADDED "%10" PRIu32 |
Definition at line 60 of file corotypes.h.
#define CS_PRI_RING_ID "%" PRIx32 ".%" PRIx64 |
Definition at line 62 of file corotypes.h.
#define CS_PRI_RING_ID_SEQ "%" PRIx64 |
Definition at line 61 of file corotypes.h.
#define CS_TIME_END ((cs_time_t)0x7FFFFFFFFFFFFFFFULL) |
Definition at line 56 of file corotypes.h.
#define CS_TIME_MS_IN_SEC 1000ULL |
Definition at line 133 of file corotypes.h.
#define CS_TIME_NS_IN_MSEC 1000000ULL |
Definition at line 137 of file corotypes.h.
#define CS_TIME_NS_IN_SEC 1000000000ULL |
Definition at line 135 of file corotypes.h.
#define CS_TIME_NS_IN_USEC 1000ULL |
Definition at line 138 of file corotypes.h.
#define CS_TIME_US_IN_MSEC 1000ULL |
Definition at line 136 of file corotypes.h.
#define CS_TIME_US_IN_SEC 1000000ULL |
Definition at line 134 of file corotypes.h.
#define CS_TRACK_CHANGES 0x02 |
Definition at line 92 of file corotypes.h.
#define CS_TRACK_CHANGES_ONLY 0x04 |
Definition at line 93 of file corotypes.h.
#define CS_TRACK_CURRENT 0x01 |
Definition at line 91 of file corotypes.h.
#define CS_TRUE !CS_FALSE |
Definition at line 54 of file corotypes.h.
typedef int64_t cs_time_t |
cs_time_t
Definition at line 51 of file corotypes.h.
enum cs_dispatch_flags_t |
The cs_dispatch_flags_t enum.
Enumerator | |
---|---|
CS_DISPATCH_ONE | |
CS_DISPATCH_ALL | |
CS_DISPATCH_BLOCKING | |
CS_DISPATCH_ONE_NONBLOCKING |
Definition at line 84 of file corotypes.h.
enum cs_error_t |
The cs_error_t enum.
Definition at line 98 of file corotypes.h.
const char * cs_strerror | ( | cs_error_t | err | ) |
cs_strerror
err |
cs_error_t hdb_error_to_cs | ( | int | res | ) |
hdb_error_to_cs
res |
cs_error_t qb_to_cs_error | ( | int | result | ) |