![]() |
yumapro
25.10-1
YumaPro SDK
|
Get module properties and access fields within the ncx_module_t_ data structure. More...

Functions | |
| boolean | ncx_any_dependency_errors (const ncx_module_t *mod) |
| Check if any of the imports that this module relies on were loadeds are loaded with non-fatal errors. More... | |
| boolean | ncx_is_duplicate (ncx_module_t *mod, const xmlChar *defname) |
| Check if a module definition name is a duplicate. More... | |
| const xmlChar * | ncx_get_modname (const ncx_module_t *mod) |
| Get the main module name. More... | |
| xmlns_id_t | ncx_get_mod_nsid (const ncx_module_t *mod) |
| Get the main module namespace ID. More... | |
| const xmlChar * | ncx_get_modversion (const ncx_module_t *mod) |
| Get the [sub]module version. More... | |
| const xmlChar * | ncx_get_modnamespace (const ncx_module_t *mod) |
| Get the module namespace URI. More... | |
| const xmlChar * | ncx_get_modsource (const ncx_module_t *mod) |
| Get the module filespec source string. More... | |
| ncx_module_t * | ncx_get_mainmod (ncx_module_t *mod) |
| Get the main module. More... | |
| const xmlChar * | ncx_get_mod_prefix (const ncx_module_t *mod) |
| Get the module prefix for the specified module. More... | |
| const xmlChar * | ncx_get_mod_xmlprefix (const ncx_module_t *mod) |
| Get the module XML prefix for the specified module. More... | |
| const xmlChar * | ncx_get_mod_source (const ncx_module_t *mod) |
| Get the module file source string for the specified module. More... | |
| const xmlChar * | ncx_get_mod_revision (const ncx_module_t *mod) |
| Get the module revision string for the specified module. More... | |
| const xmlChar * | ncx_get_mod_ocversion (const ncx_module_t *mod) |
| Get the module openconfig-version string for the specified module. More... | |
| status_t | ncx_set_mod_ocversion (ncx_module_t *mod, const xmlChar *ocversion) |
| Set the module openconfig-version string for the specified module. More... | |
| const xmlChar * | ncx_get_mod_ietfversion (const ncx_module_t *mod) |
| Get the module IETF Semver string for the specified module. More... | |
| status_t | ncx_set_mod_ietfversion (ncx_module_t *mod, const xmlChar *version) |
| Set the module IETF Semver string for the specified module. More... | |
| status_t | ncx_compare_semvers (const xmlChar *version1, const xmlChar *version2, int32 *ret) |
| Compare two IETF or OC Semver values. More... | |
| dlq_hdr_t * | ncx_get_allincQ (ncx_module_t *mod) |
| Find the correct Q of yang_node_t for all include files that have the same 'belongs-to' value. More... | |
| const dlq_hdr_t * | ncx_get_const_allincQ (const ncx_module_t *mod) |
| Find the correct Q of yang_node_t for all include files that have the same 'belongs-to' value (const version) More... | |
| ncx_module_t * | ncx_get_parent_mod (ncx_module_t *mod) |
| Find the correct module by checking mod->parent nodes. More... | |
| boolean | ncx_mod_has_rpcs (ncx_module_t *mod) |
| Check if the module has any RPC operation definitions. More... | |
| boolean | ncx_mod_has_data_nodes (ncx_module_t *mod, boolean check_config, boolean check_operational) |
| Check if the module has any datastore definitions. More... | |
| boolean | ncx_mod_has_augment_data_nodes (ncx_module_t *mod, boolean check_config, boolean check_operational) |
| Check if the module has any augment datastore definitions. More... | |
| boolean | ncx_mod_unloadable (ncx_module_t *mod) |
| Check if this module can be unloaded. More... | |
| void | ncx_set_mod_unloadable (ncx_module_t *mod) |
| Set this module so it can be unloaded. More... | |
| ncx_module_t * | ncx_first_submodule (ncx_module_t *mod) |
| Get the first submodule in the specified main module. More... | |
| ncx_module_t * | ncx_next_submodule (ncx_module_t *mod, ncx_module_t *submod) |
| Get the next submodule in the specified main module. More... | |
| void | ncx_set_module_supported (ncx_module_t *mod, boolean supported) |
| Set the module supported field. More... | |
| ncx_yang_version_t | ncx_get_yang_version (const ncx_module_t *mod) |
| Get the yang-version used in the module. More... | |
| void | ncx_number_all_objects (ncx_module_t *mod) |
| Number all objects for internal ordering comparisons. More... | |
| boolean | ncx_mod_is_hidden (const ncx_module_t *mod) |
| Check if the module is forced no advertise (e.g. More... | |
| status_t | ncx_check_yang_identity (ncx_module_t *impmod, const xmlChar *idstr) |
| Check if an identity string is available in the module. More... | |
| void | ncx_set_ocpattern_mode (ncx_module_t *mod, boolean mode) |
| Set the openconfig pattern mode. More... | |
| void | ncx_force_ocpattern_mode (ncx_module_t *mod) |
| Force the openconfig pattern mode to TRUE. More... | |
| boolean | ncx_get_ocpattern_mode (const ncx_module_t *mod) |
| Get the openconfig pattern mode. More... | |
| boolean | ncx_modname_is_ocpattern (const xmlChar *modname) |
| Check if the module name is an openconfig file. More... | |
| boolean | ncx_skip_child_node_warn (const xmlChar *modname) |
| Internal compiler check to suppress warnings. More... | |
| void | ncx_clr_enable_chk (ncx_module_t *mod) |
| Clear the enable check test done flag in all objects in the specified module. More... | |
| void | ncx_set_yangmap_type (ncx_module_t *mod, boolean is_src) |
| Set the yangmap type flags. More... | |
| boolean | ncx_is_yangmap_type (ncx_module_t *mod, boolean is_src) |
| Check the yangmap type flags. More... | |
| boolean | ncx_mod_has_submodules (const ncx_module_t *mod) |
| Check if this is a main module with submodules. More... | |
Get module properties and access fields within the ncx_module_t_ data structure.
Read YANG statement properties.
| boolean ncx_any_dependency_errors | ( | const ncx_module_t * | mod | ) |
Check if any of the imports that this module relies on were loadeds are loaded with non-fatal errors.

| status_t ncx_check_yang_identity | ( | ncx_module_t * | impmod, |
| const xmlChar * | idstr | ||
| ) |
Check if an identity string is available in the module.
| impmod | module that should be checked |
| idstr | identity string value to find in impmod |
NO_ERR if idstr found in impmod 
| void ncx_clr_enable_chk | ( | ncx_module_t * | mod | ) |
Clear the enable check test done flag in all objects in the specified module.
| mod | module to clear |

| status_t ncx_compare_semvers | ( | const xmlChar * | version1, |
| const xmlChar * | version2, | ||
| int32 * | ret | ||
| ) |
Compare two IETF or OC Semver values.
IGNORES ALL EXTRA TEXT AFTER X.Y.Z
| version1 | first version string to compare | |
| version2 | second version string to compare | |
| [out] | ret | == compare result:
|

| ncx_module_t * ncx_first_submodule | ( | ncx_module_t * | mod | ) |
Get the first submodule in the specified main module.
| mod | module to search for the first submodule |

| void ncx_force_ocpattern_mode | ( | ncx_module_t * | mod | ) |
Force the openconfig pattern mode to TRUE.
| mod | module struct getting set |
| dlq_hdr_t * ncx_get_allincQ | ( | ncx_module_t * | mod | ) |
Find the correct Q of yang_node_t for all include files that have the same 'belongs-to' value.
| mod | module to check |

| const dlq_hdr_t * ncx_get_const_allincQ | ( | const ncx_module_t * | mod | ) |
Find the correct Q of yang_node_t for all include files that have the same 'belongs-to' value (const version)
| mod | module to check |

| ncx_module_t * ncx_get_mainmod | ( | ncx_module_t * | mod | ) |
Get the main module.
| mod | submodule to get main module |

| const xmlChar * ncx_get_mod_ietfversion | ( | const ncx_module_t * | mod | ) |
Get the module IETF Semver string for the specified module.
| mod | module to check |

| xmlns_id_t ncx_get_mod_nsid | ( | const ncx_module_t * | mod | ) |
Get the main module namespace ID.
| mod | module or submodule to get main module namespace ID |

| const xmlChar * ncx_get_mod_ocversion | ( | const ncx_module_t * | mod | ) |
Get the module openconfig-version string for the specified module.
| mod | module to check |

| const xmlChar * ncx_get_mod_prefix | ( | const ncx_module_t * | mod | ) |
Get the module prefix for the specified module.
| mod | module to check |

| const xmlChar * ncx_get_mod_revision | ( | const ncx_module_t * | mod | ) |
Get the module revision string for the specified module.
| mod | module to check |

| const xmlChar * ncx_get_mod_source | ( | const ncx_module_t * | mod | ) |
Get the module file source string for the specified module.
| mod | module to check |
| const xmlChar * ncx_get_mod_xmlprefix | ( | const ncx_module_t * | mod | ) |
Get the module XML prefix for the specified module.
This will be set by the xmlns module when the module is registered. The prefix is allocated first-one-wins. If a later module tries to register the same prefix, the xmlprefix will be different than the prefix. Otherwise they will be the same.
| mod | module to check |

| const xmlChar * ncx_get_modname | ( | const ncx_module_t * | mod | ) |
Get the main module name.
| mod | module or submodule to get main module name |

| const xmlChar * ncx_get_modnamespace | ( | const ncx_module_t * | mod | ) |
Get the module namespace URI.
| mod | module or submodule to get module namespace |
| const xmlChar * ncx_get_modsource | ( | const ncx_module_t * | mod | ) |
Get the module filespec source string.
| mod | module or submodule to use |
| const xmlChar * ncx_get_modversion | ( | const ncx_module_t * | mod | ) |
Get the [sub]module version.
| mod | module or submodule to get module version |
| boolean ncx_get_ocpattern_mode | ( | const ncx_module_t * | mod | ) |
Get the openconfig pattern mode.
| mod | module the module to check |
| ncx_module_t * ncx_get_parent_mod | ( | ncx_module_t * | mod | ) |
Find the correct module by checking mod->parent nodes.
| mod | module to check |

| ncx_yang_version_t ncx_get_yang_version | ( | const ncx_module_t * | mod | ) |
Get the yang-version used in the module.
| mod | module to check |

| boolean ncx_is_duplicate | ( | ncx_module_t * | mod, |
| const xmlChar * | defname | ||
| ) |
Check if a module definition name is a duplicate.
This function is for modules in progress which have not been added to the registry yet.
| mod | ncx_module_t to check |
| defname | name of definition to find |

| boolean ncx_is_yangmap_type | ( | ncx_module_t * | mod, |
| boolean | is_src | ||
| ) |
Check the yangmap type flags.
| mod | module to check |
| is_src | TRUE to check source-module; FALSE to check target module |
| boolean ncx_mod_has_augment_data_nodes | ( | ncx_module_t * | mod, |
| boolean | check_config, | ||
| boolean | check_operational | ||
| ) |
Check if the module has any augment datastore definitions.
| mod | module to check |
| check_config | TRUE if config=true nodes should be checked |
| check_operational | TRUE if config=false nodes should be checked |

| boolean ncx_mod_has_data_nodes | ( | ncx_module_t * | mod, |
| boolean | check_config, | ||
| boolean | check_operational | ||
| ) |
Check if the module has any datastore definitions.
| mod | module to check |
| check_config | TRUE to check config=true |
| check_operational | TRUE to check config=false |


| boolean ncx_mod_has_rpcs | ( | ncx_module_t * | mod | ) |
Check if the module has any RPC operation definitions.
| mod | module to check |


| boolean ncx_mod_has_submodules | ( | const ncx_module_t * | mod | ) |
Check if this is a main module with submodules.
Only call after parsing is completed
| mod | module to check |
| boolean ncx_mod_is_hidden | ( | const ncx_module_t * | mod | ) |
Check if the module is forced no advertise (e.g.
annotation)
This only hides the module from NETCONF and YANG library advertisement It will generally mess up the client if a module that is used and data is returned from that module, is actually hidden

| boolean ncx_mod_unloadable | ( | ncx_module_t * | mod | ) |
Check if this module can be unloaded.
| mod | module to check |
| boolean ncx_modname_is_ocpattern | ( | const xmlChar * | modname | ) |
Check if the module name is an openconfig file.
| modname | the module name to check |

| ncx_module_t * ncx_next_submodule | ( | ncx_module_t * | mod, |
| ncx_module_t * | submod | ||
| ) |
Get the next submodule in the specified main module.
| mod | module to search for the next submodule |
| submod | current submodule |

| void ncx_number_all_objects | ( | ncx_module_t * | mod | ) |
Number all objects for internal ordering comparisons.
| mod | module to go through and number all objects in this module |

| status_t ncx_set_mod_ietfversion | ( | ncx_module_t * | mod, |
| const xmlChar * | version | ||
| ) |
Set the module IETF Semver string for the specified module.
Set by the YANG compiler; Not for external use
| mod | module to check |
| version | string to set (mandatory, will overite any existing value) |

| status_t ncx_set_mod_ocversion | ( | ncx_module_t * | mod, |
| const xmlChar * | ocversion | ||
| ) |
Set the module openconfig-version string for the specified module.
Set by the YANG compiler; Not for external use
| mod | module to check |
| ocversion | string to set (mandatory, will overite any existing value) |

| void ncx_set_mod_unloadable | ( | ncx_module_t * | mod | ) |
Set this module so it can be unloaded.
| mod | module to check |

| void ncx_set_module_supported | ( | ncx_module_t * | mod, |
| boolean | supported | ||
| ) |
Set the module supported field.
| mod | module to set |
| supported | TRUE if supported for conformance; FALSE if not |

| void ncx_set_ocpattern_mode | ( | ncx_module_t * | mod, |
| boolean | mode | ||
| ) |
Set the openconfig pattern mode.
| mod | module to set |
| mode | T: for openconfig mode [POSIX] F: IETF mode [XSD] |
| void ncx_set_yangmap_type | ( | ncx_module_t * | mod, |
| boolean | is_src | ||
| ) |
Set the yangmap type flags.
| mod | module to set |
| is_src | TRUE if source-module; FALSE if target module |
| boolean ncx_skip_child_node_warn | ( | const xmlChar * | modname | ) |
Internal compiler check to suppress warnings.
Hack: hardwire module names that have corner-case YANG XPath that tests for child nodes that can only be added from external augments. The XPath checker gets fooled when parsing the base module
| modname | module name to check |
