libyang  2.0.7
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
Data parser options
Collaboration diagram for Data parser options:

Macros

#define LYD_PARSE_LYB_MOD_UPDATE   0x100000
 
#define LYD_PARSE_NO_STATE   0x080000
 
#define LYD_PARSE_ONLY   0x010000
 
#define LYD_PARSE_OPAQ   0x040000
 
#define LYD_PARSE_OPTS_MASK   0xFFFF0000
 
#define LYD_PARSE_STRICT   0x020000
 

Detailed Description

Various options to change the data tree parsers behavior.

Default parser behavior:

Default parser validation behavior:

Macro Definition Documentation

◆ LYD_PARSE_LYB_MOD_UPDATE

#define LYD_PARSE_LYB_MOD_UPDATE   0x100000

Only for LYB format, allow parsing data printed using a specific module revision to be loaded even with a module with the same name but newer revision.

Definition at line 154 of file parser_data.h.

◆ LYD_PARSE_NO_STATE

#define LYD_PARSE_NO_STATE   0x080000

Forbid state data in the parsed data. Usually used with LYD_VALIDATE_NO_STATE.

Definition at line 150 of file parser_data.h.

◆ LYD_PARSE_ONLY

#define LYD_PARSE_ONLY   0x010000

Data will be only parsed and no validation will be performed. When statements are kept unevaluated, union types may not be fully resolved, if-feature statements are not checked, and default values are not added (only the ones parsed are present).

Definition at line 145 of file parser_data.h.

◆ LYD_PARSE_OPAQ

#define LYD_PARSE_OPAQ   0x040000

Instead of silently ignoring data without definition, parse them into an opaq node. Do not combine with LYD_PARSE_STRICT (except for LYD_LYB).

Definition at line 149 of file parser_data.h.

◆ LYD_PARSE_OPTS_MASK

#define LYD_PARSE_OPTS_MASK   0xFFFF0000

Mask for all the LYD_PARSE_ options.

Definition at line 156 of file parser_data.h.

◆ LYD_PARSE_STRICT

#define LYD_PARSE_STRICT   0x020000

Instead of silently ignoring data without schema definition raise an error. Do not combine with LYD_PARSE_OPAQ (except for LYD_LYB).

Definition at line 147 of file parser_data.h.