34 #ifndef __NVDS_MSGAPI_H__
35 #define __NVDS_MSGAPI_H__
NvDsMsgApiErrorType nvds_msgapi_send(NvDsMsgApiHandle h_ptr, char *topic, const uint8_t *payload, size_t nbuf)
Send message over connection synchronously based on blocking semantics.
NvDsMsgApiErrorType
Defines completion status for operations in the NvDS_MsgApi interface.
char * nvds_msgapi_getversion(void)
Current version of NvDS_MsgApi interface supported by protocol adapter.
NvDsMsgApiHandle nvds_msgapi_connect(char *connection_str, nvds_msgapi_connect_cb_t connect_cb, char *config_path)
Connects to a remote agent by calling into protocol adapter.
disconnection of connection handle
void(* nvds_msgapi_connect_cb_t)(NvDsMsgApiHandle h_ptr, NvDsMsgApiEventType ds_evt)
Type definition for handle method callback registered during connect.
void nvds_msgapi_do_work(NvDsMsgApiHandle h_ptr)
Calls into the adapter to allow for execution of undnerlying protocol logic.
void * NvDsMsgApiHandle
Defines the handle to be used with all methods in the NvDS_MsgApi interface.
NvDsMsgApiErrorType nvds_msgapi_disconnect(NvDsMsgApiHandle h_ptr)
Terminates existing connection.
void(* nvds_msgapi_send_cb_t)(void *user_ptr, NvDsMsgApiErrorType completion_flag)
Type definition for send method callback.
NvDsMsgApiErrorType nvds_msgapi_send_async(NvDsMsgApiHandle h_ptr, char *topic, const uint8_t *payload, size_t nbuf, nvds_msgapi_send_cb_t send_callback, void *user_ptr)
Send message over connection asynchronously based on non-blocking semantics.
NvDsMsgApiEventType
Defines various events associated with connections to remote entities.