yumapro
24.10-2
YumaPro SDK
|
Handle Library mode if it is configured. More...
Typedefs | |
typedef 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 More... | |
Functions | |
void | agt_library_init (void) |
Initialize the agt_library module. More... | |
status_t | agt_library_init2 (void) |
Load the modules in the agt_library module. More... | |
void | agt_library_cleanup (void) |
Cleanup the agt_library module. More... | |
void | agt_library_register_search_fn (agt_library_search_fn_t callback) |
Register a library search result Q processing callback. More... | |
ncxmod_search_result_t * | agt_library_mod_revision_count (const xmlChar *modname, uint32 *retcount) |
Get the number of revisions found of 1 module. More... | |
ncxmod_search_result_t * | agt_library_find_module (const xmlChar *modname, const xmlChar *version) |
Find the first instance of (modname, version) More... | |
Handle Library mode if it is configured.
The server will disable most operations and instead just publish a YANG library and <get-schema> for all the modules it can find in its –modpath
typedef 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
agt_librarb_search_fn
Process a queue of search results and add to the library as 'imported' modules
modlibQ | Q of ncxmod_search_result_t to process |
void agt_library_cleanup | ( | void | ) |
Cleanup the agt_library module.
Called by the server during shutdown.
ncxmod_search_result_t * agt_library_find_module | ( | const xmlChar * | modname, |
const xmlChar * | version | ||
) |
Find the first instance of (modname, version)
modname | module name to find |
version | revision string (may be NULL) |
void agt_library_init | ( | void | ) |
Initialize the agt_library module.
Start library mode, phase 1 init
status_t agt_library_init2 | ( | void | ) |
Load the modules in the agt_library module.
ncxmod_search_result_t * agt_library_mod_revision_count | ( | const xmlChar * | modname, |
uint32 * | retcount | ||
) |
Get the number of revisions found of 1 module.
modname | module name to find | |
[out] | retcount | address of return count *retcount number of revisions found |
void agt_library_register_search_fn | ( | agt_library_search_fn_t | callback | ) |
Register a library search result Q processing callback.
callback | callback to register |