libyang 2.1.148
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
Loading...
Searching...
No Matches
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

◆ LYD_MERGE_DEFAULTS

#define LYD_MERGE_DEFAULTS   0x02

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

Definition at line 2047 of file tree_data.h.

◆ LYD_MERGE_DESTRUCT

#define LYD_MERGE_DESTRUCT   0x01

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

Definition at line 2046 of file tree_data.h.

◆ LYD_MERGE_WITH_FLAGS

#define LYD_MERGE_WITH_FLAGS   0x04

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

Definition at line 2048 of file tree_data.h.