yumapro  24.10-1
YumaPro SDK
Loading...
Searching...
No Matches
json_parse.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 - 2019, YumaWorks, Inc., All Rights Reserved.
3 *
4 * Unless required by applicable law or agreed to in writing,
5 * software distributed under the License is distributed on an
6 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7 * KIND, either express or implied. See the License for the
8 * specific language governing permissions and limitations
9 * under the License.
10 */
11#ifndef _H_json_parse
12#define _H_json_parse
13
14/* FILE: json_parse.h
15*********************************************************************
16* *
17* P U R P O S E *
18* *
19*********************************************************************/
20
26/*********************************************************************
27* *
28* C H A N G E H I S T O R Y *
29* *
30*********************************************************************
31
32date init comment
33----------------------------------------------------------------------
3417-oct-15 abb Begun, split out from agt_json_parse.c
35*/
36
37#ifndef _H_obj
38#include "obj.h"
39#endif
40
41#ifndef _H_ses
42#include "ses.h"
43#endif
44
45#ifndef _H_status
46#include "status.h"
47#endif
48
49#ifndef _H_xml_msg
50#include "xml_msg.h"
51#endif
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57/********************************************************************
58* *
59* F U N C T I O N S *
60* *
61*********************************************************************/
62
92extern status_t
94 xml_msg_hdr_t *msg,
95 obj_template_t *obj,
96 const xmlChar **modname,
97 const xmlChar **name,
98 xmlChar **tempbuff);
99
100
134extern status_t
136 xml_msg_hdr_t *msg,
137 obj_template_t *obj,
138 dlq_hdr_t *returnQ);
139
140
162extern status_t
163 json_parse_buffer (xmlChar *buff,
164 obj_template_t *obj,
165 dlq_hdr_t *returnQ);
166
167
171#ifdef __cplusplus
172} /* end extern 'C' */
173#endif
174
175#endif /* _H_json_parse */
status_t json_parse_top_identifier(ses_cb_t *scb, xml_msg_hdr_t *msg, obj_template_t *obj, const xmlChar **modname, const xmlChar **name, xmlChar **tempbuff)
Parse a top-level JSON object;.
Definition: json_parse.c:2445
status_t json_parse_buffer(xmlChar *buff, obj_template_t *obj, dlq_hdr_t *returnQ)
Parse buffer of JSON into val_value_t structs.
Definition: json_parse.c:2642
status_t json_parse_text(ses_cb_t *scb, xml_msg_hdr_t *msg, obj_template_t *obj, dlq_hdr_t *returnQ)
Parse token chain representing JSON Text.
Definition: json_parse.c:2571
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:1229
Session Control Block.
Definition: ses.h:573
Common Encoding Message Header No longer XML specific!! Used by JSON and CBOR parsing as well!...
Definition: xml_msg.h:404
XML and JSON Message send and receive support.