yumapro  20.10-14
YumaPro SDK
YANG Type Name (ncx_typname_t)

YANG type name support. More...

Collaboration diagram for YANG Type Name (ncx_typname_t):

Functions

ncx_typname_tncx_new_typname (void)
 Malloc and init a typname struct. More...
 
void ncx_free_typname (ncx_typname_t *typnam)
 Free a typname struct. More...
 
const xmlChar * ncx_find_typname (const typ_template_t *typ, const dlq_hdr_t *que)
 Find a typname struct in the specified Q for a typ pointer. More...
 
const typ_template_tncx_find_typname_type (const dlq_hdr_t *que, const xmlChar *typname)
 Find a typ_template_t pointer in a typename mapping, in the specified Q. More...
 
void ncx_clean_typnameQ (dlq_hdr_t *que)
 Delete all the Q entries, of typname mapping structs. More...
 

Detailed Description

YANG type name support.

Extra compiler tracking to print actual type name used.

Function Documentation

◆ ncx_clean_typnameQ()

void ncx_clean_typnameQ ( dlq_hdr_t *  que)

Delete all the Q entries, of typname mapping structs.

Parameters
queQ of ncx_typname_t struct to delete

◆ ncx_find_typname()

const xmlChar* ncx_find_typname ( const typ_template_t typ,
const dlq_hdr_t *  que 
)

Find a typname struct in the specified Q for a typ pointer.

Parameters
queQ of ncx_typname_t struct to check
typmatching type template to find
Returns
name assigned to this type template

◆ ncx_find_typname_type()

const typ_template_t* ncx_find_typname_type ( const dlq_hdr_t *  que,
const xmlChar *  typname 
)

Find a typ_template_t pointer in a typename mapping, in the specified Q.

Parameters
queQ of ncx_typname_t struct to check
typnamematching type name to find
Returns
pointer to the stored typstatus

◆ ncx_free_typname()

void ncx_free_typname ( ncx_typname_t typnam)

Free a typname struct.

Parameters
typnamncx_typname_t struct to free

◆ ncx_new_typname()

ncx_typname_t* ncx_new_typname ( void  )

Malloc and init a typname struct.

Returns
malloced struct or NULL if memory error
malloced struct or NULL if memory error