yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
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
33date init comment
34----------------------------------------------------------------------
3524-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
48extern "C" {
49#endif
50
51/********************************************************************
52* *
53* T Y P E S *
54* *
55*********************************************************************/
56
82typedef status_t (*agt_library_search_fn_t) (dlq_hdr_t *modlibQ);
83
84
85
86/********************************************************************
87* *
88* F U N C T I O N S *
89* *
90*********************************************************************/
91
92
98extern void
99 agt_library_init (void);
100
101
107extern status_t
108 agt_library_init2 (void);
109
110
116extern void
117 agt_library_cleanup (void);
118
119
125extern void
127
128
129
139 agt_library_mod_revision_count (const xmlChar *modname,
140 uint32 *retcount);
141
142
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 */
void agt_library_cleanup(void)
Cleanup the agt_library module.
Definition: agt_library.c:143
void agt_library_init(void)
Initialize the agt_library module.
Definition: agt_library.c:84
status_t agt_library_init2(void)
Load the modules in the agt_library module.
Definition: agt_library.c:106
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
void agt_library_register_search_fn(agt_library_search_fn_t callback)
Register a library search result Q processing callback.
Definition: agt_library.c:172
status_t(* agt_library_search_fn_t)(dlq_hdr_t *modlibQ)
for the list of subsystems requesting or in progress for a config load or replay
Definition: agt_library.h:82
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:194
status_t
global error return code
Definition: status_enum.h:210
NCX Module Load Manager.
global error status code enumerations
struct for storing YANG file search results this is used by yangcli for schema auto-load also for fin...
Definition: ncxmod.h:422