libyang  2.1.148
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data merge options.
Collaboration diagram for Data merge options.:

Macros

#define LYD_MERGE_DEFAULTS   0x02
 
#define LYD_MERGE_DESTRUCT   0x01
 
#define LYD_MERGE_WITH_FLAGS   0x04
 

Detailed Description

Various options to change lyd_merge_tree(), lyd_merge_siblings(), and lyd_merge_module() behavior.

Default behavior:

Macro Definition Documentation

#define LYD_MERGE_DEFAULTS   0x02

Default nodes in the source tree replace even explicit nodes in the target.

Definition at line 2074 of file tree_data.h.

#define LYD_MERGE_DESTRUCT   0x01

Spend source data tree in the function, it cannot be used afterwards!

Definition at line 2073 of file tree_data.h.

#define LYD_MERGE_WITH_FLAGS   0x04

Merged nodes (those missing in the source) keep their exact flags.

Definition at line 2075 of file tree_data.h.