yumapro  20.10-10
YumaPro SDK
YANG Include Statement (ncx_include_t)

YANG include statement processing. More...

Collaboration diagram for YANG Include Statement (ncx_include_t):

Functions

ncx_include_tncx_new_include (void)
 Malloc and initialize the fields in a ncx_include_t. More...
 
void ncx_free_include (ncx_include_t *inc)
 Free a ncx_include_t. More...
 
ncx_include_tncx_find_include (const ncx_module_t *mod, const xmlChar *submodule)
 Search the includeQ for a specified submodule name. More...
 

Detailed Description

YANG include statement processing.

Load include module when include-stmt consumed. Also resolve submodule.

Function Documentation

ncx_include_t* ncx_find_include ( const ncx_module_t mod,
const xmlChar *  submodule 
)

Search the includeQ for a specified submodule name.

Parameters
modmodule to search (mod->includeQ)
submodulesubmodule name to find
Returns
pointer to the node if found, NULL if not found

Here is the call graph for this function:

void ncx_free_include ( ncx_include_t inc)

Free a ncx_include_t.

Scrub the memory in a ncx_include_t by freeing all the sub-fields and then freeing the entire struct itself The struct must be removed from any queue it is in before this function is called.

Parameters
incncx_include_t data structure to free

Here is the call graph for this function:

ncx_include_t* ncx_new_include ( void  )

Malloc and initialize the fields in a ncx_include_t.

Returns
pointer to the malloced and initialized struct or NULL if an error
pointer to the malloced and initialized struct or NULL if an error

Here is the call graph for this function: