NVIDIA DeepStream SDK API Reference
9.1 Release
sources/apps/apps-common/includes/deepstream_c2d_msg_util.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_UTIL_H__
19
#define __NVGSTDS_C2D_MSG_UTIL_H__
20
21
#include <glib.h>
22
#include "
deepstream_c2d_msg.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
26
{
27
#endif
28
29
typedef
enum
{
30
NVDS_C2D_MSG_SR_START
,
31
NVDS_C2D_MSG_SR_STOP
32
}
NvDsC2DMsgType
;
33
34
typedef
struct
NvDsC2DMsg
{
35
NvDsC2DMsgType
type
;
36
gpointer
message
;
37
guint
msgSize
;
38
}
NvDsC2DMsg
;
39
40
typedef
struct
NvDsC2DMsgSR
{
41
gchar *
sensorStr
;
42
gint
startTime
;
43
guint
duration
;
44
}
NvDsC2DMsgSR
;
45
46
NvDsC2DMsg
*
nvds_c2d_parse_cloud_message
(gpointer data, guint size);
47
48
void
nvds_c2d_release_message
(
NvDsC2DMsg
*msg);
49
50
gboolean
nvds_c2d_parse_sensor
(
NvDsC2DContext
*ctx,
const
gchar *file);
51
52
#ifdef __cplusplus
53
}
54
#endif
55
#endif
NvDsC2DContext
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg.h:29
NvDsC2DMsgType
NvDsC2DMsgType
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:29
deepstream_c2d_msg.h
NvDsC2DMsgSR
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:40
NvDsC2DMsg::type
NvDsC2DMsgType type
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:35
nvds_c2d_release_message
void nvds_c2d_release_message(NvDsC2DMsg *msg)
NvDsC2DMsgSR::sensorStr
gchar * sensorStr
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:41
nvds_c2d_parse_sensor
gboolean nvds_c2d_parse_sensor(NvDsC2DContext *ctx, const gchar *file)
NvDsC2DMsg
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:34
NvDsC2DMsg::msgSize
guint msgSize
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:37
NVDS_C2D_MSG_SR_START
@ NVDS_C2D_MSG_SR_START
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:30
NVDS_C2D_MSG_SR_STOP
@ NVDS_C2D_MSG_SR_STOP
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:31
NvDsC2DMsgSR::duration
guint duration
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:43
nvds_c2d_parse_cloud_message
NvDsC2DMsg * nvds_c2d_parse_cloud_message(gpointer data, guint size)
NvDsC2DMsg
struct NvDsC2DMsg NvDsC2DMsg
NvDsC2DMsgSR::startTime
gint startTime
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:42
NvDsC2DMsg::message
gpointer message
Definition:
sources/apps/apps-common/includes/deepstream_c2d_msg_util.h:36
NvDsC2DMsgSR
struct NvDsC2DMsgSR NvDsC2DMsgSR
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