yumapro  24.10-1
YumaPro SDK
Loading...
Searching...
No Matches
xml_parse.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 - 2021, 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_xml_parse
12#define _H_xml_parse
13
14/* FILE: xml_parse.c
15
16*********************************************************************
17* *
18* P U R P O S E *
19* *
20*********************************************************************/
21
29/*********************************************************************
30* *
31* C H A N G E H I S T O R Y *
32* *
33*********************************************************************
34
35date init comment
36----------------------------------------------------------------------
3715apr20 am begun
38*/
39
40#ifndef _H_obj
41#include "obj.h"
42#endif
43
44#ifndef _H_ses
45#include "ses.h"
46#endif
47
48#ifndef _H_status
49#include "status.h"
50#endif
51
52#ifndef _H_xml_msg
53#include "xml_msg.h"
54#endif
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
60/********************************************************************
61* *
62* F U N C T I O N S *
63* *
64*********************************************************************/
65
94extern status_t
96 xml_msg_hdr_t *msg,
97 obj_template_t *obj,
98 const xml_node_t *startnode,
99 ncx_data_class_t parentdc,
100 val_value_t *retval);
101
102
121extern status_t
123 boolean advance,
124 xml_node_t *node,
125 ncx_layer_t layer,
126 xml_msg_hdr_t *msghdr,
127 boolean eoferr,
128 boolean nserr);
129
130
149extern status_t
150 xml_parse_buffer (xmlChar *buff,
151 obj_template_t *obj,
152 dlq_hdr_t *returnQ);
153
154
158#ifdef __cplusplus
159} /* end extern 'C' */
160#endif
161
162#endif /* _H_xml_parse */
status_t
global error return code
Definition: status_enum.h:210
status_t xml_parse_buffer(xmlChar *buff, obj_template_t *obj, dlq_hdr_t *returnQ)
Parse buffer of XML into val_value_t structs.
Definition: xml_parse.c:4603
status_t xml_parse_consume_node(ses_cb_t *scb, boolean advance, xml_node_t *node, ncx_layer_t layer, xml_msg_hdr_t *msghdr, boolean eoferr, boolean nserr)
Internal consume XML node function.
Definition: xml_parse.c:4322
status_t xml_parse_btype_nc(ses_cb_t *scb, xml_msg_hdr_t *msg, obj_template_t *obj, const xml_node_t *startnode, ncx_data_class_t parentdc, val_value_t *retval)
Parse the XML node.
Definition: xml_parse.c:4132
ncx_data_class_t
NCX Persistence Control.
Definition: ncxtypes.h:203
ncx_layer_t
Enumeration of NETCONF protocol layers.
Definition: ncxtypes.h:507
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
one value to match one type
Definition: val.h:912
Common Encoding Message Header No longer XML specific!! Used by JSON and CBOR parsing as well!...
Definition: xml_msg.h:404
gather node data into a simple struct.
Definition: xml_util.h:207
XML and JSON Message send and receive support.