![]() |
kinetic-c
v0.12.0
Seagate Kinetic Protocol Client Library for C
|
Go to the source code of this file.
Data Structures | |
| struct | bus_sink_cb_res_t |
| struct | bus_unpack_cb_res_t |
| struct | bus_config |
| struct | bus_result |
| struct | bus_msg_result_t |
| struct | bus_user_msg |
Macros | |
| #define | BUS_MAX_CONCURRENT_SENDS 10 |
| #define | BUS_DEFAULT_TIMEOUT_SEC 10 |
| #define | BUS_NO_SEQ_ID (-1) |
| #define | BUS_LOG(B, LEVEL, EVENT_KEY, MSG, UDATA) |
| #define | BUS_LOG_STRINGIFY(X) #X |
| #define | BUS_LOG_SNPRINTF(B, LEVEL, EVENT_KEY, UDATA, MAX_SZ, FMT,...) |
| #define | BUS_ASSERT(B, UDATA, COND) |
Typedefs | |
| typedef void( | bus_log_cb )(log_event_t event, int log_level, const char *msg, void *udata) |
| typedef bus_sink_cb_res_t( | bus_sink_cb )(uint8_t *read_buf, size_t read_size, void *socket_udata) |
| typedef bus_unpack_cb_res_t( | bus_unpack_cb )(void *msg, void *socket_udata) |
| typedef void( | bus_error_cb )(bus_unpack_cb_res_t result, void *socket_udata) |
| typedef void( | bus_unexpected_msg_cb )(void *msg, int64_t seq_id, void *bus_udata, void *socket_udata) |
| typedef void( | bus_msg_cb )(bus_msg_result_t *res, void *udata) |
Enumerations | |
| enum | log_event_t |
| enum | Bus_Init_res_t |
| enum | bus_send_status_t |
| enum | bus_socket_t |
| enum | bus_status_res_t |
| #define BUS_MAX_CONCURRENT_SENDS 10 |
Definition at line 33 of file bus_types.h.
| #define BUS_DEFAULT_TIMEOUT_SEC 10 |
Definition at line 36 of file bus_types.h.
| #define BUS_NO_SEQ_ID (-1) |
Definition at line 39 of file bus_types.h.
| #define BUS_LOG | ( | B, | |
| LEVEL, | |||
| EVENT_KEY, | |||
| MSG, | |||
| UDATA | |||
| ) |
Definition at line 45 of file bus_types.h.
| #define BUS_LOG_STRINGIFY | ( | X | ) | #X |
Definition at line 57 of file bus_types.h.
| #define BUS_LOG_SNPRINTF | ( | B, | |
| LEVEL, | |||
| EVENT_KEY, | |||
| UDATA, | |||
| MAX_SZ, | |||
| FMT, | |||
| ... | |||
| ) |
Definition at line 59 of file bus_types.h.
| #define BUS_ASSERT | ( | B, | |
| UDATA, | |||
| COND | |||
| ) |
Definition at line 83 of file bus_types.h.
| typedef void( bus_log_cb)(log_event_t event, int log_level, const char *msg, void *udata) |
Definition at line 110 of file bus_types.h.
| typedef bus_sink_cb_res_t( bus_sink_cb)(uint8_t *read_buf, size_t read_size, void *socket_udata) |
Definition at line 130 of file bus_types.h.
| typedef bus_unpack_cb_res_t( bus_unpack_cb)(void *msg, void *socket_udata) |
Definition at line 151 of file bus_types.h.
| typedef void( bus_error_cb)(bus_unpack_cb_res_t result, void *socket_udata) |
Definition at line 154 of file bus_types.h.
| typedef void( bus_unexpected_msg_cb)(void *msg, int64_t seq_id, void *bus_udata, void *socket_udata) |
Definition at line 159 of file bus_types.h.
| typedef void( bus_msg_cb)(bus_msg_result_t *res, void *udata) |
Definition at line 229 of file bus_types.h.
| enum log_event_t |
| Enumerator | |
|---|---|
| LOG_INITIALIZATION | |
| LOG_NEW_CLIENT | |
| LOG_SOCKET_REGISTERED | |
| LOG_SENDING_REQUEST | |
| LOG_SHUTDOWN | |
| LOG_SENDER | |
| LOG_LISTENER | |
| LOG_MEMORY | |
| LOG_ASSERT | |
| LOG_EVENT_TYPE_COUNT | |
Definition at line 95 of file bus_types.h.
| enum Bus_Init_res_t |
Definition at line 180 of file bus_types.h.
| enum bus_send_status_t |
Definition at line 193 of file bus_types.h.
| enum bus_socket_t |
| Enumerator | |
|---|---|
| BUS_SOCKET_PLAIN | |
| BUS_SOCKET_SSL | |
Definition at line 231 of file bus_types.h.
| enum bus_status_res_t |
| Enumerator | |
|---|---|
| BUS_REQUEST_SUCCESS | |
| BUS_REQUEST_SEND_FAILURE_TIMEOUT | |
| BUS_REQUEST_SEND_FAILURE_HUP | |
| BUS_RESPONSE_FAILURE_TIMEOUT | |
| BUS_RESPONSE_FAILURE_HUP | |
Definition at line 254 of file bus_types.h.
1.8.8