yumapro  23.10T-9
YumaPro SDK
Loading...
Searching...
No Matches
cbor_parse.h
Go to the documentation of this file.
1#ifdef WITH_YANG_CBOR
2
3/*
4 * Copyright (c) 2020 - 2022, YumaWorks, Inc., All Rights Reserved.
5 *
6 * Unless required by applicable law or agreed to in writing,
7 * software distributed under the License is distributed on an
8 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9 * KIND, either express or implied. See the License for the
10 * specific language governing permissions and limitations
11 * under the License.
12 */
13#ifndef _H_cbor_parse
14#define _H_cbor_parse
15
16/* FILE: cbor_parse.c
17
18*********************************************************************
19* *
20* P U R P O S E *
21* *
22*********************************************************************/
23
31/*********************************************************************
32* *
33* C H A N G E H I S T O R Y *
34* *
35*********************************************************************
36
37date init comment
38----------------------------------------------------------------------
3907may22 abb begun; copy from xml_parse.h
40*/
41
42#ifndef _H_obj
43#include "obj.h"
44#endif
45
46#ifndef _H_ses
47#include "ses.h"
48#endif
49
50#ifndef _H_status
51#include "status.h"
52#endif
53
54#ifndef _H_xml_msg
55#include "xml_msg.h"
56#endif
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
62/********************************************************************
63* *
64* F U N C T I O N S *
65* *
66*********************************************************************/
67
99extern status_t
100 cbor_parse_buffer (uint32 sid_tree_id,
101 xmlChar *buff,
102 size_t bufflen,
103 obj_template_t *obj,
104 dlq_hdr_t *returnQ);
105
106
107
119extern status_t
120 cbor_parse_file (uint32 sid_tree_id,
121 const char *filespec,
122 obj_template_t *obj,
123 dlq_hdr_t *returnQ);
124
125
126extern void cbor_parse_test (const char *filespec);
127
131#ifdef __cplusplus
132} /* end extern 'C' */
133#endif
134
135#endif /* _H_cbor_parse */
136
137#endif // WITH_YANG_CBOR
status_t cbor_parse_buffer(uint32 sid_tree_id, xmlChar *buff, size_t bufflen, obj_template_t *obj, dlq_hdr_t *returnQ)
Parse buffer of CBOR into val_value_t structs.
Definition: cbor_parse.c:3678
status_t cbor_parse_file(uint32 sid_tree_id, const char *filespec, obj_template_t *obj, dlq_hdr_t *returnQ)
Parse file of CBOR into val_value_t structs.
Definition: cbor_parse.c:3770
status_t
global error return code
Definition: status_enum.h:210
Data Object Support.
NETCONF Session Common definitions module.
Global error messages for status code enumerations.
One YANG data-def-stmt.
Definition: obj.h:1220
XML and JSON Message send and receive support.