yumapro  25.10-1
YumaPro SDK
Loading...
Searching...
No Matches
sid_file.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 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_sid_file
12#define _H_sid_file
13
14#ifdef WITH_YANG_CBOR
15
16/* FILE: sid_file.h
17*********************************************************************
18* *
19* P U R P O S E *
20* *
21*********************************************************************/
22
29/*********************************************************************
30* *
31* C H A N G E H I S T O R Y *
32* *
33*********************************************************************
34
35date init comment
36----------------------------------------------------------------------
3726-nov-21 abb Begun; start from yang_hash.c
38
39*/
40
41#include "status_enum.h"
42#include "obj.h"
43
44/*** assumes procdefs.h has been included ***/
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50/********************************************************************
51* *
52* T Y P E S *
53* *
54*********************************************************************/
55
56
57/********************************************************************
58* *
59* F U N C T I O N S *
60* *
61*********************************************************************/
62
63/* Group definied in yang.h */
64
65
82extern status_t sid_file_init (void);
83
84
89extern void sid_file_cleanup (void);
90
91
104extern val_value_t *
106 status_t *res);
107
108
127extern status_t
128 sid_file_apply (uint32 sid_tree_id,
129 val_value_t *sidfile,
130 ncx_module_t *mod,
131 boolean internal);
132
133
139extern obj_template_t *
140 sid_file_get_obj (void);
141
142
145#endif // WITH_YANG_CBOR
146
147#ifdef __cplusplus
148} /* end extern 'C' */
149#endif
150
151#endif /* _H_sid_file */
status_t
global error return code
Definition: status_enum.h:219
val_value_t * sid_file_load(ncx_module_t *mod, status_t *res)
Load the SID file for the specified YANG module.
Definition: sid_file.c:496
obj_template_t * sid_file_get_obj(void)
Get the OBJ template for the SID file.
Definition: sid_file.c:701
status_t sid_file_apply(uint32 sid_tree_id, val_value_t *sidfile, ncx_module_t *mod, boolean internal)
Apply the SID file contents to specified YANG module.
Definition: sid_file.c:644
void sid_file_cleanup(void)
Cleanup the SID FIle Parser Module.
Definition: sid_file.c:472
status_t sid_file_init(void)
Initialize the SID FIle Parser Module.
Definition: sid_file.c:421
Data Object Support.
global error status code enumerations
representation of one module or submodule during and after parsing
Definition: ncxtypes.h:1118
One YANG data-def-stmt.
Definition: obj.h:1284
one value to match one type
Definition: val.h:939