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

Macros

#define LYD_COMPARE_DEFAULTS
 
#define LYD_COMPARE_FULL_RECURSION
 

Detailed Description

Various options to change the lyd_compare_single() and lyd_compare_siblings() behavior.

Macro Definition Documentation

◆ LYD_COMPARE_DEFAULTS

#define LYD_COMPARE_DEFAULTS
Value:
0x02 /* By default, implicit and explicit default nodes are considered to be equal. This flag
changes this behavior and implicit (automatically created default node) and explicit
(explicitly created node with the default value) default nodes are considered different. */

Definition at line 1889 of file tree_data.h.

◆ LYD_COMPARE_FULL_RECURSION

#define LYD_COMPARE_FULL_RECURSION
Value:
0x01 /* lists and containers are the same only in case all they children
(subtree, so direct as well as indirect children) are the same. By default,
containers are the same in case of the same schema node and lists are the same
in case of equal keys (keyless lists do the full recursion comparison all the time). */

Definition at line 1888 of file tree_data.h.