NVIDIA DeepStream SDK API Reference
9.1 Release
sources/apps/apps-common/includes/deepstream_c2d_msg.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: Apache-2.0
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef __NVGSTDS_C2D_MSG_H__
19
#define __NVGSTDS_C2D_MSG_H__
20
21
#include <gst/gst.h>
22
#include "nvmsgbroker.h"
23
24
#ifdef __cplusplus
25
extern
"C"
26
{
27
#endif
28
29
typedef
struct
NvDsC2DContext
{
30
gpointer
libHandle
;
31
gchar *
protoLib
;
32
gchar *
connStr
;
33
gchar *
configFile
;
34
gpointer
uData
;
35
GHashTable *
hashMap
;
36
NvMsgBrokerClientHandle
connHandle
;
37
nv_msgbroker_subscribe_cb_t
subscribeCb
;
38
}
NvDsC2DContext
;
39
40
typedef
struct
NvDsMsgConsumerConfig
{
41
gboolean
enable
;
42
gchar *
proto_lib
;
43
gchar *
conn_str
;
44
gchar *
config_file_path
;
45
GPtrArray *
topicList
;
46
gchar *
sensor_list_file
;
47
}
NvDsMsgConsumerConfig
;
48
49
NvDsC2DContext
*
50
start_cloud_to_device_messaging
(
NvDsMsgConsumerConfig
*config,
51
nv_msgbroker_subscribe_cb_t
cb,
52
void
*uData);
53
gboolean
stop_cloud_to_device_messaging
(
NvDsC2DContext
* uCtx);
54
55
#ifdef __cplusplus
56
}
57
#endif
58
#endif
NvDsC2DContext
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:29
NvDsC2DContext::configFile
gchar * configFile
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:33
start_cloud_to_device_messaging
NvDsC2DContext * start_cloud_to_device_messaging(NvDsMsgConsumerConfig *config, nv_msgbroker_subscribe_cb_t cb, void *uData)
NvDsMsgConsumerConfig::config_file_path
gchar * config_file_path
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:44
NvDsC2DContext::uData
gpointer uData
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:34
NvDsMsgConsumerConfig::conn_str
gchar * conn_str
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:43
NvMsgBrokerClientHandle
void * NvMsgBrokerClientHandle
Definition:
sources/includes/nvmsgbroker.h:59
NvDsC2DContext::protoLib
gchar * protoLib
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:31
NvDsMsgConsumerConfig
struct NvDsMsgConsumerConfig NvDsMsgConsumerConfig
NvDsC2DContext
struct NvDsC2DContext NvDsC2DContext
NvDsMsgConsumerConfig::sensor_list_file
gchar * sensor_list_file
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:46
NvDsC2DContext::connHandle
NvMsgBrokerClientHandle connHandle
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:36
NvDsMsgConsumerConfig::enable
gboolean enable
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:41
NvDsC2DContext::hashMap
GHashTable * hashMap
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:35
NvDsC2DContext::subscribeCb
nv_msgbroker_subscribe_cb_t subscribeCb
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:37
NvDsC2DContext::connStr
gchar * connStr
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:32
NvDsMsgConsumerConfig::topicList
GPtrArray * topicList
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:45
NvDsC2DContext::libHandle
gpointer libHandle
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:30
NvDsMsgConsumerConfig
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:40
stop_cloud_to_device_messaging
gboolean stop_cloud_to_device_messaging(NvDsC2DContext *uCtx)
NvDsMsgConsumerConfig::proto_lib
gchar * proto_lib
Definition:
sources/apps/apps-common/includes/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:
sources/includes/nvmsgbroker.h:83
Privacy Policy
|
Manage My Privacy
|
Do Not Sell or Share My Data
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
NVIDIA Confidential | Subject to Change | For test and development only.
Thu Jul 9 2026 11:48:19 | PR-09318-R32