yumapro  20.10-14
YumaPro SDK
agt_library.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016, 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_agt_library
12 #define _H_agt_library
13 
14 /* FILE: agt_library.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
27 /*********************************************************************
28 * *
29 * C H A N G E H I S T O R Y *
30 * *
31 *********************************************************************
32 
33 date init comment
34 ----------------------------------------------------------------------
35 24-jun-16 abb Begun
36 
37 */
38 
39 #ifndef _H_ncxmod
40 #include "ncxmod.h"
41 #endif
42 
43 #ifndef _H_status_enum
44 #include "status_enum.h"
45 #endif
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
51 /********************************************************************
52 * *
53 * T Y P E S *
54 * *
55 *********************************************************************/
56 
82 typedef status_t (*agt_library_search_fn_t) (dlq_hdr_t *modibQ);
83 
84 
85 
86 /********************************************************************
87 * *
88 * F U N C T I O N S *
89 * *
90 *********************************************************************/
91 
92 
98 extern void
99  agt_library_init (void);
100 
101 
107 extern status_t
108  agt_library_init2 (void);
109 
110 
116 extern void
117  agt_library_cleanup (void);
118 
119 
125 extern void
127 
128 
129 
138 extern ncxmod_search_result_t *
139  agt_library_mod_revision_count (const xmlChar *modname,
140  uint32 *retcount);
141 
142 
150 extern ncxmod_search_result_t *
151  agt_library_find_module (const xmlChar *modname,
152  const xmlChar *version);
153 
154 
158 #ifdef __cplusplus
159 } /* end extern 'C' */
160 #endif
161 
162 #endif /* _H_agt_library */
status_t agt_library_init2(void)
Load the modules in the agt_library module.
Definition: agt_library.c:107
ncxmod_search_result_t * agt_library_find_module(const xmlChar *modname, const xmlChar *version)
Find the first instance of (modname, version)
Definition: agt_library.c:292
ncxmod_search_result_t * agt_library_mod_revision_count(const xmlChar *modname, uint32 *retcount)
Get the number of revisions found of 1 module.
Definition: agt_library.c:195
NCX Module Load Manager.
status_t(* agt_library_search_fn_t)(dlq_hdr_t *modibQ)
for the list of subsystems requesting or in progress for a config load or replay
Definition: agt_library.h:82
struct for storing YANG file search results this is used by yangcli for schema auto-load also for fin...
Definition: ncxmod.h:390
void agt_library_init(void)
Initialize the agt_library module.
Definition: agt_library.c:85
status_t
global error return code
Definition: status_enum.h:186
void agt_library_cleanup(void)
Cleanup the agt_library module.
Definition: agt_library.c:144
void agt_library_register_search_fn(agt_library_search_fn_t callback)
Register a library search result Q processing callback.
Definition: agt_library.c:173
global error status code enumerations