yumapro
24.10-1
YumaPro SDK
|
XML and CBOR Parser Utilities. More...
Modules | |
Parser Utilities | |
YANG Parser Control Block and General Access Functions. | |
Functions | |
boolean | parse_util_check_prune_data (xml_msg_hdr_t *msg, val_value_t *val, status_t res) |
Check if the node should be pruned; it has already been deleted. More... | |
status_t | yang_parse_from_filespec (const xmlChar *filespec, yang_pcb_t *pcb, yang_parsetype_t ptyp, boolean isyang) |
Parse a file as a YANG module. More... | |
XML and CBOR Parser Utilities.
YANG Language Parser Entry Function.
YANG Language Parser.
boolean parse_util_check_prune_data | ( | xml_msg_hdr_t * | msg, |
val_value_t * | val, | ||
status_t | res | ||
) |
Check if the node should be pruned; it has already been deleted.
msg | message header with prune_bad_data maybe set |
val | value causing error (for warning only) |
res | error status (for warning message only) |
status_t yang_parse_from_filespec | ( | const xmlChar * | filespec, |
yang_pcb_t * | pcb, | ||
yang_parsetype_t | ptyp, | ||
boolean | isyang | ||
) |
Parse a file as a YANG module.
Error messages are printed by this function!!
On successful return: An ncx_module is filled out and validated as the file is parsed. If no errors:
TOP, IMPORT: the module is loaded into the definition registry with the ncx_add_to_registry function INCLUDE: the submodule is loaded into the top-level module, specified in the pcb
filespec | absolute path or relative path This string is used as-is without adjustment. |
pcb | parser control block used as very top-level struct |
ptyp | parser call type YANG_PT_TOP == called from top-level file YANG_PT_INCLUDE == called from an include-stmt in a file YANG_PT_IMPORT == called from an import-stmt in a file |
isyang | TRUE if a YANG file is expected FALSE if a YIN file is expected |