yumapro
24.10-3
YumaPro SDK
|
Actions and configuration setting utilities for the ncx_module_t data structure. More...
Functions | |
void | ncx_delete_mod_obsolete_objects (ncx_module_t *mod) |
Delete all obsolete objects in mod . More... | |
void | ncx_remove_augment_data_nodes (ncx_module_t *mod) |
Check if YANG objects related to this augment need to be removed. More... | |
void | ncx_collapse_submod_defs (ncx_module_t *mod) |
Collapse submodule definitions into the main module. More... | |
status_t | ncx_set_obj_xpath_backptrs (ncx_module_t *mod) |
Add Xpath back pointers to the data-db objects in the database for 1 module. More... | |
void | ncx_clear_mod_xpath_backptrs (ncx_module_t *mod) |
Clear Xpath back pointers for the data-db objects in the database for 1 module. More... | |
void | ncx_unload_and_free_module (ncx_module_t *mod) |
Clear out the xmlns, def_ref, and modQ entries for a module and then delete the module. More... | |
void | ncx_soft_unload_and_free_module (ncx_module_t *mod) |
Clear out the modQ entries for a module and then delete the module. More... | |
Actions and configuration setting utilities for the ncx_module_t data structure.
Specialized compiler-only functions.
void ncx_clear_mod_xpath_backptrs | ( | ncx_module_t * | mod | ) |
Clear Xpath back pointers for the data-db objects in the database for 1 module.
mod | module to clear backptrs for |
void ncx_collapse_submod_defs | ( | ncx_module_t * | mod | ) |
Collapse submodule definitions into the main module.
Go through one module and move all the definitions from the sub-module queues to the main module queue. This is only done in the yangcli/netconfd programs to make searches faster and support sub-modules correctly; many functions do not check the sub-modules and will ignore definitions in those sub-modules.
This must only be done after all modules are loaded and the module mod_done flag is being set to TRUE. Should only be called by yang_parse/parse_yang_module
mod | module to check |
void ncx_delete_mod_obsolete_objects | ( | ncx_module_t * | mod | ) |
Delete all obsolete objects in mod
.
Go through one module and delete the obsolete nodes Used by the server when a module is dynamically added with the <load> operation
mod | module to check |
void ncx_remove_augment_data_nodes | ( | ncx_module_t * | mod | ) |
Check if YANG objects related to this augment need to be removed.
Check if the module has any augment datastore definitions into a sub-tree within another module. These augmented object nodes need to be removed when the module is unloaded
mod | module to check |
status_t ncx_set_obj_xpath_backptrs | ( | ncx_module_t * | mod | ) |
Add Xpath back pointers to the data-db objects in the database for 1 module.
mod | module to add backptrs for |
void ncx_soft_unload_and_free_module | ( | ncx_module_t * | mod | ) |
Clear out the modQ entries for a module and then delete the module.
mod | module to clear backptrs for |
void ncx_unload_and_free_module | ( | ncx_module_t * | mod | ) |
Clear out the xmlns, def_ref, and modQ entries for a module and then delete the module.
mod | module to clear backptrs for |