![]() |
yumapro
25.10-1
YumaPro SDK
|
NETCONF and YANG error reporting support. More...

Functions | |
| ncx_errinfo_t * | ncx_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... | |
NETCONF and YANG error reporting support.
RFC 6241 defines the structure of the error-info element.
| void ncx_clean_errinfo | ( | ncx_errinfo_t * | err | ) |
Scrub the memory in a ncx_errinfo_t by freeing all the sub-fields.
| err | ncx_errinfo_t data structure to clean |

| status_t ncx_copy_errinfo | ( | const ncx_errinfo_t * | src, |
| ncx_errinfo_t * | dest | ||
| ) |
Copy the fields from one errinfo to a blank errinfo.
| src | struct with starting contents | |
| [out] | dest | struct to get copy of src contents
|


| 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
| errinfo | ncx_errinfo_t struct to check |

| 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.
| err | ncx_errinfo_t data structure to free |


| void ncx_init_errinfo | ( | ncx_errinfo_t * | err | ) |
Init the fields in an ncx_errinfo_t struct.
| err | ncx_errinfo_t data structure to init |

| ncx_errinfo_t * ncx_new_errinfo | ( | void | ) |
Malloc and init a new ncx_errinfo_t.

