yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
YANG Identity Statement (ncx_identity_t)

-YANG identity statement support More...

Collaboration diagram for YANG Identity Statement (ncx_identity_t):

Functions

ncx_identity_tncx_new_identity (void)
 Get a new ncx_identity_t struct. More...
 
ncx_identity_base_tncx_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_tncx_first_identity_base (ncx_identity_t *identity)
 Get the first base record for an identity. More...
 
ncx_identity_base_tncx_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_tncx_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_tncx_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...
 

Detailed Description

-YANG identity statement support

Function Documentation

◆ ncx_find_all_identities()

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

Parameters
baseidentity base to match
cbfncallback function to invoke when a match is found
cookiecookie to pass to callback function

◆ ncx_find_identity()

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.

Parameters
modmodule to search
nameidentity name to find
useallTRUE if all submodules should be checked FALSE if only visible included submodules should be checked
Returns
pointer to found feature or NULL if not found
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ncx_find_identity_que()

ncx_identity_t * ncx_find_identity_que ( dlq_hdr_t *  identityQ,
const xmlChar *  name 
)

Find a ncx_identity_t struct in the specified Q.

Parameters
identityQQ of ncx_identity_t to search
nameidentity name to find
Returns
pointer to found identity or NULL if not found
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ncx_first_identity_base()

ncx_identity_base_t * ncx_first_identity_base ( ncx_identity_t identity)

Get the first base record for an identity.

Parameters
identitystruct to check
Returns
first idbase or NULL if none

◆ ncx_for_all_identities()

void ncx_for_all_identities ( ncx_module_t mod,
ncx_identity_cbfn_t  cbfn,
void *  cookie 
)

Iterate all the YANG identities in the module.

Parameters
modmodule to search
cbfnThe identity_cbfn_t to invoke for each identity found
cookieUser cookie to pass to callback (may be NULL)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ncx_free_identity()

void ncx_free_identity ( ncx_identity_t identity)

Free a malloced ncx_identity_t struct.

Parameters
identitystruct to free
Here is the call graph for this function:

◆ ncx_free_identity_base()

void ncx_free_identity_base ( ncx_identity_base_t identity_base)

Free a malloced ncx_identity_base_t struct.

Parameters
identity_basestruct to free
Here is the caller graph for this function:

◆ ncx_get_identity_conditional()

boolean ncx_get_identity_conditional ( const ncx_identity_t identity)

Check if the identity is conditional on if-feature.

Parameters
identityncx_identity_t struct to check
Returns
true if conditional, false if not
Here is the caller graph for this function:

◆ ncx_get_identity_nsid()

xmlns_id_t ncx_get_identity_nsid ( const ncx_identity_t identity)

Get the namespace ID for an identity.

Parameters
identityncx_identity_t struct to search
Returns
NSID value

◆ ncx_new_identity()

ncx_identity_t * ncx_new_identity ( void  )

Get a new ncx_identity_t struct.

Returns
pointer to a malloced ncx_identity_t struct, or NULL if malloc error
Here is the call graph for this function:

◆ ncx_new_identity_base()

ncx_identity_base_t * ncx_new_identity_base ( void  )

Get a new ncx_identity_base_t struct.

Returns
pointer to a malloced ncx_identity_base_t struct, or NULL if malloc error

◆ ncx_next_identity_base()

ncx_identity_base_t * ncx_next_identity_base ( ncx_identity_base_t idbase)

Get the next base record for an identity.

Parameters
idbasestruct to check
Returns
next idbase or NULL if none