|
NVIDIA DeepStream SDK API Reference
|
7.1 Release
|
Go to the documentation of this file.
30 #ifndef __NVDS_MSGAPI_H__
31 #define __NVDS_MSGAPI_H__
void(* nvds_msgapi_connect_cb_t)(NvDsMsgApiHandle h_ptr, NvDsMsgApiEventType ds_evt)
Type definition for a "handle" 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)
Sends message asynchronously over a connection.
NvDsMsgApiErrorType nvds_msgapi_connection_signature(char *broker_str, char *cfg, char *output_str, int max_len)
Fetch the connection signature by parsing broker_connection string and cfg file.
NvDsMsgApiErrorType
Defines completion codes for operations in the messaging API.
NvDsMsgApiErrorType nvds_msgapi_disconnect(NvDsMsgApiHandle h_ptr)
Terminates a connection.
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.
@ NVDS_MSGAPI_UNKNOWN_TOPIC
char * nvds_msgapi_get_protocol_name(void)
Gets the name of the protocol used in the adapter.
void nvds_msgapi_do_work(NvDsMsgApiHandle h_ptr)
Calls into the adapter to allow for execution of undnerlying protocol logic.
@ NVDS_MSGAPI_EVT_DISCONNECT
Specifies disconnection of a connection handle.
void * NvDsMsgApiHandle
Defines the handle used by messaging API functions.
@ NVDS_MSGAPI_EVT_SUCCESS
Specifies that a connection attempt was successful.
NvDsMsgApiErrorType nvds_msgapi_subscribe(NvDsMsgApiHandle h_ptr, char **topics, int num_topics, nvds_msgapi_subscribe_request_cb_t cb, void *user_ctx)
Subscribe to a remote entity for receiving messages on a particular topic(s)
NvDsMsgApiEventType
Defines events associated with connections to remote entities.
char * nvds_msgapi_getversion(void)
Gets the version number of the messaging API interface supported by the protocol adapter.
NvDsMsgApiErrorType nvds_msgapi_send(NvDsMsgApiHandle h_ptr, char *topic, const uint8_t *payload, size_t nbuf)
Sends a message synchronously over a connection.
void(* nvds_msgapi_send_cb_t)(void *user_ptr, NvDsMsgApiErrorType completion_flag)
Type definition for a "send" callback.
@ NVDS_MSGAPI_EVT_SERVICE_DOWN
Specifies that the remote service is down.
void(* nvds_msgapi_subscribe_request_cb_t)(NvDsMsgApiErrorType flag, void *msg, int msg_len, char *topic, void *user_ptr)
Type definition for callback registered during subscribe.