NVIDIA DeepStream SDK API Reference

6.4 Release
deepstream_c2d_msg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  * DEALINGS IN THE SOFTWARE.
21  */
22 
23 
24 #ifndef __NVGSTDS_C2D_MSG_H__
25 #define __NVGSTDS_C2D_MSG_H__
26 
27 #include <gst/gst.h>
28 #include "nvmsgbroker.h"
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
35 typedef struct NvDsC2DContext {
36  gpointer libHandle;
37  gchar *protoLib;
38  gchar *connStr;
39  gchar *configFile;
40  gpointer uData;
41  GHashTable *hashMap;
45 
46 typedef struct NvDsMsgConsumerConfig {
47  gboolean enable;
48  gchar *proto_lib;
49  gchar *conn_str;
51  GPtrArray *topicList;
54 
58  void *uData);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 #endif
NvMsgBrokerClientHandle
void * NvMsgBrokerClientHandle
Definition: nvmsgbroker.h:51
NvDsC2DContext
Definition: deepstream_c2d_msg.h:35
NvDsC2DContext::uData
gpointer uData
Definition: deepstream_c2d_msg.h:40
NvDsMsgConsumerConfig::conn_str
gchar * conn_str
Definition: deepstream_c2d_msg.h:49
NvDsC2DContext::connStr
gchar * connStr
Definition: deepstream_c2d_msg.h:38
nvmsgbroker.h
NvDsC2DContext
struct NvDsC2DContext NvDsC2DContext
NvDsMsgConsumerConfig::sensor_list_file
gchar * sensor_list_file
Definition: deepstream_c2d_msg.h:52
NvDsC2DContext::hashMap
GHashTable * hashMap
Definition: deepstream_c2d_msg.h:41
stop_cloud_to_device_messaging
gboolean stop_cloud_to_device_messaging(NvDsC2DContext *uCtx)
NvDsC2DContext::connHandle
NvMsgBrokerClientHandle connHandle
Definition: deepstream_c2d_msg.h:42
nv_msgbroker_subscribe_cb_t
void(* nv_msgbroker_subscribe_cb_t)(NvMsgBrokerErrorType status, void *msg, int msglen, char *topic, void *user_ptr)
subscribe callback method registered during subscribe
Definition: nvmsgbroker.h:75
NvDsMsgConsumerConfig::enable
gboolean enable
Definition: deepstream_c2d_msg.h:47
NvDsMsgConsumerConfig::topicList
GPtrArray * topicList
Definition: deepstream_c2d_msg.h:51
NvDsMsgConsumerConfig
struct NvDsMsgConsumerConfig NvDsMsgConsumerConfig
NvDsC2DContext::protoLib
gchar * protoLib
Definition: deepstream_c2d_msg.h:37
NvDsMsgConsumerConfig::config_file_path
gchar * config_file_path
Definition: deepstream_c2d_msg.h:50
NvDsC2DContext::subscribeCb
nv_msgbroker_subscribe_cb_t subscribeCb
Definition: deepstream_c2d_msg.h:43
NvDsC2DContext::libHandle
gpointer libHandle
Definition: deepstream_c2d_msg.h:36
NvDsMsgConsumerConfig
Definition: deepstream_c2d_msg.h:46
NvDsMsgConsumerConfig::proto_lib
gchar * proto_lib
Definition: deepstream_c2d_msg.h:48
start_cloud_to_device_messaging
NvDsC2DContext * start_cloud_to_device_messaging(NvDsMsgConsumerConfig *config, nv_msgbroker_subscribe_cb_t cb, void *uData)
NvDsC2DContext::configFile
gchar * configFile
Definition: deepstream_c2d_msg.h:39