libyang  0.16.105
YANG data modeling language library
Data duplication options
Collaboration diagram for Data duplication options:

Macros

#define LYD_DUP_OPT_RECURSIVE   0x01
 
#define LYD_DUP_OPT_NO_ATTR   0x02
 
#define LYD_DUP_OPT_WITH_PARENTS   0x04
 

Detailed Description

Various options to change lyd_dup() behavior.

Default behavior:

Macro Definition Documentation

◆ LYD_DUP_OPT_RECURSIVE

#define LYD_DUP_OPT_RECURSIVE   0x01

Duplicate not just the node but also all the children.

Definition at line 962 of file tree_data.h.

◆ LYD_DUP_OPT_NO_ATTR

#define LYD_DUP_OPT_NO_ATTR   0x02

Do not duplicate attributes of any node.

Definition at line 963 of file tree_data.h.

◆ LYD_DUP_OPT_WITH_PARENTS

#define LYD_DUP_OPT_WITH_PARENTS   0x04

If a nested node is being duplicated, duplicate also all the parents. Keys are also duplicated for lists. Return value does not change!

Definition at line 964 of file tree_data.h.