yumapro  20.10-10
YumaPro SDK
YANG Error Info (ncx_errinfo_t)

NETCONF and YANG error reporting support. More...

Collaboration diagram for YANG Error Info (ncx_errinfo_t):

Functions

ncx_errinfo_tncx_new_errinfo (void)
 Malloc and init a new ncx_errinfo_t. More...
 
void ncx_init_errinfo (ncx_errinfo_t *err)
 Init the fields in an ncx_errinfo_t struct. More...
 
void ncx_clean_errinfo (ncx_errinfo_t *err)
 Scrub the memory in a ncx_errinfo_t by freeing all the sub-fields. More...
 
void ncx_free_errinfo (ncx_errinfo_t *err)
 Scrub the memory in a ncx_errinfo_t by freeing all the sub-fields, then free the errinfo struct. More...
 
boolean ncx_errinfo_set (const ncx_errinfo_t *errinfo)
 Check if error-app-tag or error-message set. More...
 
status_t ncx_copy_errinfo (const ncx_errinfo_t *src, ncx_errinfo_t *dest)
 Copy the fields from one errinfo to a blank errinfo. More...
 

Detailed Description

NETCONF and YANG error reporting support.

RFC 6241 defines the structure of the error-info element.

Function Documentation

void ncx_clean_errinfo ( ncx_errinfo_t err)

Scrub the memory in a ncx_errinfo_t by freeing all the sub-fields.

Parameters
errncx_errinfo_t data structure to clean

Here is the caller graph for this function:

status_t ncx_copy_errinfo ( const ncx_errinfo_t src,
ncx_errinfo_t dest 
)

Copy the fields from one errinfo to a blank errinfo.

Parameters
srcstruct with starting contents
deststruct to get copy of src contents
Return values
*destfields set which are set in src
Returns
status

Here is the call graph for this function:

Here is the caller graph for this function:

boolean ncx_errinfo_set ( const ncx_errinfo_t errinfo)

Check if error-app-tag or error-message set.

Check if the errinfo struct is set or empty Checks only the error_app_tag and error_message fields

Parameters
errinfoncx_errinfo_t struct to check
Returns
TRUE if at least one field set; FALSE if the errinfo struct is empty

Here is the caller graph for this function:

void ncx_free_errinfo ( ncx_errinfo_t err)

Scrub the memory in a ncx_errinfo_t by freeing all the sub-fields, then free the errinfo struct.

Parameters
errncx_errinfo_t data structure to free

Here is the call graph for this function:

void ncx_init_errinfo ( ncx_errinfo_t err)

Init the fields in an ncx_errinfo_t struct.

Parameters
errncx_errinfo_t data structure to init

Here is the caller graph for this function:

ncx_errinfo_t* ncx_new_errinfo ( void  )

Malloc and init a new ncx_errinfo_t.

Returns
pointer to malloced ncx_errinfo_t, or NULL if memory error
pointer to malloced ncx_errinfo_t, or NULL if memory error

Here is the call graph for this function: