yumapro  24.10-2
YumaPro SDK
Loading...
Searching...
No Matches
yang_lsid.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022, 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_yang_lsid
12#define _H_yang_lsid
13
14#ifdef WITH_YANG_CBOR
15
16/* FILE: yang_lsid.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----------------------------------------------------------------------
3701-may-22 abb Begun; start from yang_sid.h
38
39*/
40
41/*** assumes procdefs.h has been included ***/
42
43#include "status_enum.h"
44#include "ncxtypes.h"
45#include "yang_sid.h"
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
51
52/********************************************************************
53* *
54* F U N C T I O N S *
55* *
56*********************************************************************/
57
58/* Group definied in yang.h */
59
60
79extern status_t
81 yang_sid_status_t status);
82
83
92extern status_t
94
95
100extern void yang_lsid_init (void);
101
102
107extern void yang_lsid_cleanup (void);
108
109
112#endif // WITH_YANG_CBOR
113
114#ifdef __cplusplus
115} /* end extern 'C' */
116#endif
117
118#endif /* _H_yang_lsid */
status_t
global error return code
Definition: status_enum.h:210
void yang_lsid_cleanup(void)
Cleanup the YANG LSID module.
Definition: yang_lsid.c:467
status_t yang_lsid_set_all_modules(yang_sid_test_fn_t test_fn)
Attempt to assign the YANG SIDs for all the loaded modules.
Definition: yang_lsid.c:420
status_t yang_lsid_set_module(ncx_module_t *mod, yang_sid_status_t status)
Attempt to assign SIDs for the module.
Definition: yang_lsid.c:321
void yang_lsid_init(void)
Initialize the YANG LSID module.
Definition: yang_lsid.c:457
yang_sid_status_t
enum for the keep-module status returned by the test function Only used for LSID assignment at this t...
Definition: yang_sid.h:78
yang_sid_status_t(* yang_sid_test_fn_t)(ncx_module_t *mod)
function callback to test if module is external, internal, or should be skipped for SID assignment
Definition: yang_sid.h:101
YANG module data structures Many internal representations of YANG module constructs.
global error status code enumerations
representation of one module or submodule during and after parsing
Definition: ncxtypes.h:1138
YANG SID Assignment support.