Go to the source code of this file.
Data Structures | |
| struct | NvMsgBrokerThread_t |
| struct | proto_adapter |
| struct | NvMsgBrokerHandle |
| struct | NvMsgBrokerSendCB_info |
Macros | |
| #define | DEFAULT_RETRY_INTERVAL 2 |
| #define | DEFAULT_MAX_RETRY_LIMIT 360 |
| #define | DEFAULT_WORK_INTERVAL 10000 |
Typedefs | |
| typedef struct proto_adapter | AdapterLib |
Enumerations | |
| enum | NvMsgBrokerReturnVal { SUCCESS, FAIL, ERROR } |
Functions | |
| void * | do_work_func (void *) |
| void | adapter_connect_cb (NvDsMsgApiHandle *adapter_h_ptr, NvDsMsgApiEventType ds_evt) |
| void | adapter_send_cb (void *user_ptr, NvDsMsgApiErrorType completion_flag) |
| void | adapter_subscribe_cb (NvDsMsgApiErrorType flag, void *msg, int msglen, char *topic, void *user_ptr) |
| void | handle_error (void *handle, pthread_mutex_t *lock, AdapterLib *lib, const char *log, const char *error) |
| bool | fetch_adapter_api (void *so_handle, AdapterLib *LIB) |
| NvMsgBrokerReturnVal | reconnect (NvMsgBrokerHandle *h_ptr) |
| void | __attribute__ ((constructor)) nvmsgbroker_init(void) |
| void | __attribute__ ((destructor)) nvmsgbroker_deinit(void) |
Variables | |
| const char * | nvmsgbrokerConfig = "/opt/nvidia/deepstream/deepstream/sources/libs/nvmsgbroker/cfg_nvmsgbroker.txt" |
| bool | auto_reconnect |
| unsigned | retry_interval |
| unsigned | max_retry_limit |
| unsigned | work_interval |
| map< pair< string, AdapterLib * >, NvMsgBrokerHandle * > | conn_string_handle_map |
| unordered_set< NvMsgBrokerHandle * > | conn_Handle_list |
| unordered_map< NvDsMsgApiHandle, NvMsgBrokerHandle * > | adapter_msgbroker_map |
| unordered_map< void *, AdapterLib * > | so_handle_map |
| pthread_mutex_t | h_ptr_lock |
| #define DEFAULT_MAX_RETRY_LIMIT 360 |
Definition at line 28 of file nvmsgbroker_internal.h.
| #define DEFAULT_RETRY_INTERVAL 2 |
Definition at line 27 of file nvmsgbroker_internal.h.
| #define DEFAULT_WORK_INTERVAL 10000 |
Definition at line 29 of file nvmsgbroker_internal.h.
| typedef struct proto_adapter AdapterLib |
| enum NvMsgBrokerReturnVal |
| Enumerator | |
|---|---|
| SUCCESS | |
| FAIL | |
| ERROR | |
Definition at line 39 of file nvmsgbroker_internal.h.
| void __attribute__ | ( | (constructor) | ) |
| void __attribute__ | ( | (destructor) | ) |
| void adapter_connect_cb | ( | NvDsMsgApiHandle * | adapter_h_ptr, |
| NvDsMsgApiEventType | ds_evt | ||
| ) |
| void adapter_send_cb | ( | void * | user_ptr, |
| NvDsMsgApiErrorType | completion_flag | ||
| ) |
| void adapter_subscribe_cb | ( | NvDsMsgApiErrorType | flag, |
| void * | msg, | ||
| int | msglen, | ||
| char * | topic, | ||
| void * | user_ptr | ||
| ) |
| void* do_work_func | ( | void * | ) |
| bool fetch_adapter_api | ( | void * | so_handle, |
| AdapterLib * | LIB | ||
| ) |
| void handle_error | ( | void * | handle, |
| pthread_mutex_t * | lock, | ||
| AdapterLib * | lib, | ||
| const char * | log, | ||
| const char * | error | ||
| ) |
| NvMsgBrokerReturnVal reconnect | ( | NvMsgBrokerHandle * | h_ptr | ) |
| unordered_map<NvDsMsgApiHandle, NvMsgBrokerHandle *> adapter_msgbroker_map |
Definition at line 101 of file nvmsgbroker_internal.h.
| bool auto_reconnect |
Definition at line 34 of file nvmsgbroker_internal.h.
| unordered_set<NvMsgBrokerHandle *> conn_Handle_list |
Definition at line 100 of file nvmsgbroker_internal.h.
| map<pair<string, AdapterLib *>, NvMsgBrokerHandle *> conn_string_handle_map |
Definition at line 99 of file nvmsgbroker_internal.h.
| pthread_mutex_t h_ptr_lock |
Definition at line 105 of file nvmsgbroker_internal.h.
| unsigned max_retry_limit |
Definition at line 36 of file nvmsgbroker_internal.h.
| const char* nvmsgbrokerConfig = "/opt/nvidia/deepstream/deepstream/sources/libs/nvmsgbroker/cfg_nvmsgbroker.txt" |
Definition at line 32 of file nvmsgbroker_internal.h.
| unsigned retry_interval |
Definition at line 35 of file nvmsgbroker_internal.h.
| unordered_map<void *, AdapterLib *> so_handle_map |
Definition at line 102 of file nvmsgbroker_internal.h.
| unsigned work_interval |
Definition at line 37 of file nvmsgbroker_internal.h.