yumapro  20.10-14
YumaPro SDK
General Data Structures

General YANG module data structures. More...

Collaboration diagram for General Data Structures:

Functions

ncx_filptr_tncx_new_filptr (void)
 Get a new ncx_filptr_t struct. More...
 
void ncx_free_filptr (ncx_filptr_t *filptr)
 Free a new ncx_filptr_t struct or add to the cache if room. More...
 
ncx_revhist_tncx_new_revhist (void)
 Create a revision history entry. More...
 
void ncx_free_revhist (ncx_revhist_t *revhist)
 Free a revision history entry. More...
 
ncx_revhist_tncx_find_revhist (const ncx_module_t *mod, const xmlChar *ver)
 Search the revhistQ for a specified revision. More...
 

Detailed Description

General YANG module data structures.

Filter pointer are used for NETCONF get and get-config messages. Revision history records are only used in the YANG compiler.

Function Documentation

◆ ncx_find_revhist()

ncx_revhist_t* ncx_find_revhist ( const ncx_module_t mod,
const xmlChar *  ver 
)

Search the revhistQ for a specified revision.

Parameters
modmodule to search (mod->importQ)
verversion string to find
Returns
pointer to the node if found, NULL if not found
Here is the call graph for this function:

◆ ncx_free_filptr()

void ncx_free_filptr ( ncx_filptr_t filptr)

Free a new ncx_filptr_t struct or add to the cache if room.

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

◆ ncx_free_revhist()

void ncx_free_revhist ( ncx_revhist_t revhist)

Free a revision history entry.

Parameters
revhistncx_revhist_t data structure to free

◆ ncx_new_filptr()

ncx_filptr_t* ncx_new_filptr ( void  )

Get a new ncx_filptr_t struct.

Returns
pointer to a malloced or cached ncx_filptr_t struct, or NULL if none available
pointer to a malloced or cached ncx_filptr_t struct, or NULL if none available
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ncx_new_revhist()

ncx_revhist_t* ncx_new_revhist ( void  )

Create a revision history entry.

Returns
malloced revision history entry or NULL if malloc error
malloced revision history entry or NULL if malloc error