NVIDIA DeepStream SDK API Reference

7.0 Release
deepstream_c2d_msg.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 
14 #ifndef __NVGSTDS_C2D_MSG_H__
15 #define __NVGSTDS_C2D_MSG_H__
16 
17 #include <gst/gst.h>
18 #include "nvmsgbroker.h"
19 
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
25 typedef struct NvDsC2DContext {
26  gpointer libHandle;
27  gchar *protoLib;
28  gchar *connStr;
29  gchar *configFile;
30  gpointer uData;
31  GHashTable *hashMap;
35 
36 typedef struct NvDsMsgConsumerConfig {
37  gboolean enable;
38  gchar *proto_lib;
39  gchar *conn_str;
41  GPtrArray *topicList;
44 
48  void *uData);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 #endif
NvMsgBrokerClientHandle
void * NvMsgBrokerClientHandle
Definition: nvmsgbroker.h:53
NvDsC2DContext
Definition: deepstream_c2d_msg.h:25
NvDsC2DContext::uData
gpointer uData
Definition: deepstream_c2d_msg.h:30
NvDsMsgConsumerConfig::conn_str
gchar * conn_str
Definition: deepstream_c2d_msg.h:39
NvDsC2DContext::connStr
gchar * connStr
Definition: deepstream_c2d_msg.h:28
nvmsgbroker.h
NvDsC2DContext
struct NvDsC2DContext NvDsC2DContext
NvDsMsgConsumerConfig::sensor_list_file
gchar * sensor_list_file
Definition: deepstream_c2d_msg.h:42
NvDsC2DContext::hashMap
GHashTable * hashMap
Definition: deepstream_c2d_msg.h:31
stop_cloud_to_device_messaging
gboolean stop_cloud_to_device_messaging(NvDsC2DContext *uCtx)
NvDsC2DContext::connHandle
NvMsgBrokerClientHandle connHandle
Definition: deepstream_c2d_msg.h:32
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:77
NvDsMsgConsumerConfig::enable
gboolean enable
Definition: deepstream_c2d_msg.h:37
NvDsMsgConsumerConfig::topicList
GPtrArray * topicList
Definition: deepstream_c2d_msg.h:41
NvDsMsgConsumerConfig
struct NvDsMsgConsumerConfig NvDsMsgConsumerConfig
NvDsC2DContext::protoLib
gchar * protoLib
Definition: deepstream_c2d_msg.h:27
NvDsMsgConsumerConfig::config_file_path
gchar * config_file_path
Definition: deepstream_c2d_msg.h:40
NvDsC2DContext::subscribeCb
nv_msgbroker_subscribe_cb_t subscribeCb
Definition: deepstream_c2d_msg.h:33
NvDsC2DContext::libHandle
gpointer libHandle
Definition: deepstream_c2d_msg.h:26
NvDsMsgConsumerConfig
Definition: deepstream_c2d_msg.h:36
NvDsMsgConsumerConfig::proto_lib
gchar * proto_lib
Definition: deepstream_c2d_msg.h:38
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:29