yumapro  23.10T-9
YumaPro SDK
Loading...
Searching...
No Matches
obj_dict.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 - 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_obj_dict
12#define _H_obj_dict
13
14// #define OBJ_DICT_TEST 1
15
16#ifdef WITH_YANG_HASH
17#ifdef OBJ_DICT_TEST
18
19/* FILE: obj_dict.h
20*********************************************************************
21* *
22* P U R P O S E *
23* *
24*********************************************************************/
25
32/*********************************************************************
33* *
34* C H A N G E H I S T O R Y *
35* *
36*********************************************************************
37
38date init comment
39----------------------------------------------------------------------
4027-sep-15 abb Begun; start from ydump.c
41
42*/
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 defined in obj.h */
64
65
81extern status_t
82 obj_dict_init (void);
83
84
90extern void
91 obj_dict_cleanup (void);
92
93
102extern status_t
104
105
114extern boolean
116
117
123extern void
124 obj_dict_dump (void);
125
126
130#endif // OBJ_DICT_TEST
131#endif // WITH_YANG_HASH
132
133#ifdef __cplusplus
134} /* end extern 'C' */
135#endif
136
137#endif /* _H_obj_dict */
status_t
global error return code
Definition: status_enum.h:210
void obj_dict_dump(void)
Print the sorted dictionary contents.
Definition: obj_dict.c:347
status_t obj_dict_add_object(obj_template_t *obj)
Generate an object identifier and insert into the AVL tree.
Definition: obj_dict.c:273
boolean obj_dict_remove_object(obj_template_t *obj)
Remove an object from the object dictionary.
Definition: obj_dict.c:327
status_t obj_dict_init(void)
Initialize the object dictionary.
Definition: obj_dict.c:166
void obj_dict_cleanup(void)
Cleanup the object dictionary.
Definition: obj_dict.c:186
One YANG data-def-stmt.
Definition: obj.h:1220