18 #ifndef __NV_MSGBROKER_H__
19 #define __NV_MSGBROKER_H__
26 #define NV_MSGBROKER_VERSION "2.0"
27 #define LOG_CAT "DSLOG:NV_MSGBROKER"
void(* nv_msgbroker_send_cb_t)(void *user_ptr, NvMsgBrokerErrorType status)
Send callback method registered during send_async.
void * NvMsgBrokerClientHandle
void(* nv_msgbroker_subscribe_cb_t)(NvMsgBrokerErrorType status, void *msg, int msglen, char *topic, void *user_ptr)
subscribe callback method registered during subscribe
char * nv_msgbroker_version(void)
NvMsgBrokerErrorType nv_msgbroker_disconnect(NvMsgBrokerClientHandle h_ptr)
NvMsgBrokerClientHandle nv_msgbroker_connect(char *broker_conn_str, char *broker_proto_lib, nv_msgbroker_connect_cb_t connect_cb, char *cfg)
Connect to a remote entity by calling into msgbroker library.
NvMsgBrokerErrorType nv_msgbroker_send_async(NvMsgBrokerClientHandle h_ptr, NvMsgBrokerClientMsg message, nv_msgbroker_send_cb_t cb, void *user_ctx)
NvMsgBrokerErrorType nv_msgbroker_subscribe(NvMsgBrokerClientHandle h_ptr, char **topics, int num_topics, nv_msgbroker_subscribe_cb_t cb, void *user_ctx)
Subscribe to a remote entity for receiving messages on particular topic(s)
void(* nv_msgbroker_connect_cb_t)(NvMsgBrokerClientHandle h_ptr, NvMsgBrokerErrorType status)
Connect callback method registered during connect.