yumapro  24.10-2
YumaPro SDK
Loading...
Searching...
No Matches
agt_val_parse.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4 *
5 * Unless required by applicable law or agreed to in writing,
6 * software distributed under the License is distributed on an
7 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 * KIND, either express or implied. See the License for the
9 * specific language governing permissions and limitations
10 * under the License.
11 */
12#ifndef _H_agt_val_parse
13#define _H_agt_val_parse
14
15/* FILE: agt_val_parse.h
16*********************************************************************
17* *
18* P U R P O S E *
19* *
20*********************************************************************/
21
28/*********************************************************************
29* *
30* C H A N G E H I S T O R Y *
31* *
32*********************************************************************
33
34date init comment
35----------------------------------------------------------------------
3611-feb-06 abb Begun
3706-aug-08 abb Rewrite for OBJ/VAL only model in YANG
38 Remove app, parmset, and parm from database model
39*/
40
41#ifndef _H_rpc
42#include "rpc.h"
43#endif
44
45#ifndef _H_ses
46#include "ses.h"
47#endif
48
49#ifndef _H_status
50#include "status.h"
51#endif
52
53#ifndef _H_typ
54#include "typ.h"
55#endif
56
57#ifndef _H_xml_util
58#include "xml_util.h"
59#endif
60
61#ifdef __cplusplus
62extern "C" {
63#endif
64
65
66#ifdef DEBUG
67//#define DEBUG_PARSE_TEST 1
68#endif
69
70
71/********************************************************************
72* *
73* F U N C T I O N S *
74* *
75*********************************************************************/
76
77
78/* header defined in agt_top.h */
79
122extern status_t
124 xml_msg_hdr_t *msg,
125 obj_template_t *obj,
126 const xml_node_t *startnode,
127 ncx_data_class_t parentdc,
128 val_value_t *retval);
129
130
131#ifdef DEBUG_PARSE_TEST
137extern void
138 agt_val_parse_test (const char *testfile);
139#endif // DEBUG_PARSE_TEST
140
141
145#ifdef __cplusplus
146} /* end extern 'C' */
147#endif
148
149#endif /* _H_agt_val_parse */
status_t agt_val_parse_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 NETCONF PDU sub-contents into value fields.
Definition: agt_val_parse.c:117
status_t
global error return code
Definition: status_enum.h:210
ncx_data_class_t
NCX Persistence Control.
Definition: ncxtypes.h:203
NETCONF protocol remote procedure call common definitions.
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
Parameter Type Handler.
XML Utilities.