yumapro
24.10-2
YumaPro SDK
|
-YANG identity statement support More...
Functions | |
ncx_identity_t * | ncx_new_identity (void) |
Get a new ncx_identity_t struct. More... | |
ncx_identity_base_t * | ncx_new_identity_base (void) |
Get a new ncx_identity_base_t struct. More... | |
void | ncx_free_identity_base (ncx_identity_base_t *identity_base) |
Free a malloced ncx_identity_base_t struct. More... | |
ncx_identity_base_t * | ncx_first_identity_base (ncx_identity_t *identity) |
Get the first base record for an identity. More... | |
ncx_identity_base_t * | ncx_next_identity_base (ncx_identity_base_t *idbase) |
Get the next base record for an identity. More... | |
void | ncx_free_identity (ncx_identity_t *identity) |
Free a malloced ncx_identity_t struct. More... | |
ncx_identity_t * | ncx_find_identity (ncx_module_t *mod, const xmlChar *name, boolean useall) |
Find a ncx_identity_t struct in the module and perhaps any of its submodules. More... | |
void | ncx_for_all_identities (ncx_module_t *mod, ncx_identity_cbfn_t cbfn, void *cookie) |
Iterate all the YANG identities in the module. More... | |
ncx_identity_t * | ncx_find_identity_que (dlq_hdr_t *identityQ, const xmlChar *name) |
Find a ncx_identity_t struct in the specified Q. More... | |
xmlns_id_t | ncx_get_identity_nsid (const ncx_identity_t *identity) |
Get the namespace ID for an identity. More... | |
boolean | ncx_get_identity_conditional (const ncx_identity_t *identity) |
Check if the identity is conditional on if-feature. More... | |
void | ncx_find_all_identities (ncx_identity_t *base, ncx_identity_cbfn_t cbfn, void *cookie) |
Invoke callback for all the found identities. More... | |
-YANG identity statement support
void ncx_find_all_identities | ( | ncx_identity_t * | base, |
ncx_identity_cbfn_t | cbfn, | ||
void * | cookie | ||
) |
Invoke callback for all the found identities.
Go through all the modules and find all the identities that match the specified base identity
Internal compiler function use only
base | identity base to match |
cbfn | callback function to invoke when a match is found |
cookie | cookie to pass to callback function |
ncx_identity_t * ncx_find_identity | ( | ncx_module_t * | mod, |
const xmlChar * | name, | ||
boolean | useall | ||
) |
Find a ncx_identity_t struct in the module and perhaps any of its submodules.
mod | module to search |
name | identity name to find |
useall | TRUE if all submodules should be checked FALSE if only visible included submodules should be checked |
ncx_identity_t * ncx_find_identity_que | ( | dlq_hdr_t * | identityQ, |
const xmlChar * | name | ||
) |
Find a ncx_identity_t struct in the specified Q.
identityQ | Q of ncx_identity_t to search |
name | identity name to find |
ncx_identity_base_t * ncx_first_identity_base | ( | ncx_identity_t * | identity | ) |
Get the first base record for an identity.
identity | struct to check |
void ncx_for_all_identities | ( | ncx_module_t * | mod, |
ncx_identity_cbfn_t | cbfn, | ||
void * | cookie | ||
) |
Iterate all the YANG identities in the module.
mod | module to search |
cbfn | The identity_cbfn_t to invoke for each identity found |
cookie | User cookie to pass to callback (may be NULL) |
void ncx_free_identity | ( | ncx_identity_t * | identity | ) |
Free a malloced ncx_identity_t struct.
identity | struct to free |
void ncx_free_identity_base | ( | ncx_identity_base_t * | identity_base | ) |
Free a malloced ncx_identity_base_t struct.
identity_base | struct to free |
boolean ncx_get_identity_conditional | ( | const ncx_identity_t * | identity | ) |
Check if the identity is conditional on if-feature.
identity | ncx_identity_t struct to check |
xmlns_id_t ncx_get_identity_nsid | ( | const ncx_identity_t * | identity | ) |
Get the namespace ID for an identity.
identity | ncx_identity_t struct to search |
ncx_identity_t * ncx_new_identity | ( | void | ) |
Get a new ncx_identity_t struct.
ncx_identity_base_t * ncx_new_identity_base | ( | void | ) |
Get a new ncx_identity_base_t struct.
ncx_identity_base_t * ncx_next_identity_base | ( | ncx_identity_base_t * | idbase | ) |
Get the next base record for an identity.
idbase | struct to check |