libyang 1.0.184
YANG data modeling language library
Loading...
Searching...
No Matches
Extension flags
Collaboration diagram for Extension flags:

Macros

#define LYEXT_OPT_INHERIT   0x01
 
#define LYEXT_OPT_VALID   0x08
 
#define LYEXT_OPT_VALID_SUBTREE   0x10
 
#define LYEXT_OPT_PLUGIN1   0x0100
 
#define LYEXT_OPT_PLUGIN2   0x0200
 
#define LYEXT_OPT_PLUGIN3   0x0400
 
#define LYEXT_OPT_PLUGIN4   0x0800
 
#define LYEXT_OPT_PLUGIN5   0x1000
 
#define LYEXT_OPT_PLUGIN6   0x2000
 
#define LYEXT_OPT_PLUGIN7   0x4000
 
#define LYEXT_OPT_PLUGIN8   0x8000
 

Detailed Description

Various flags for extensions.

Macro Definition Documentation

◆ LYEXT_OPT_INHERIT

#define LYEXT_OPT_INHERIT   0x01

When instantiated in lys_node, the extension is supposed to be inherited into the children lys_node elements. The plugin can affect inheriting by a callback to decide if the extension instance is supposed to be inherited. The extension instance with this flag is not printed and it is just a shadow copy of the original extension instance in some of the parents.

Definition at line 408 of file tree_schema.h.

◆ LYEXT_OPT_VALID

#define LYEXT_OPT_VALID   0x08

needed to call calback for validation

Definition at line 413 of file tree_schema.h.

◆ LYEXT_OPT_VALID_SUBTREE

#define LYEXT_OPT_VALID_SUBTREE   0x10

The plugin needs to do validation on nodes in the subtree of the extended node (i.e. not only the extended node nor its direct children). valid_data callback will be called when any descendant node in the subtree of the extended node is modified.

Definition at line 417 of file tree_schema.h.

◆ LYEXT_OPT_PLUGIN1

#define LYEXT_OPT_PLUGIN1   0x0100

reserved flag for plugin-specific use

Definition at line 418 of file tree_schema.h.

◆ LYEXT_OPT_PLUGIN2

#define LYEXT_OPT_PLUGIN2   0x0200

reserved flag for plugin-specific use

Definition at line 419 of file tree_schema.h.

◆ LYEXT_OPT_PLUGIN3

#define LYEXT_OPT_PLUGIN3   0x0400

reserved flag for plugin-specific use

Definition at line 420 of file tree_schema.h.

◆ LYEXT_OPT_PLUGIN4

#define LYEXT_OPT_PLUGIN4   0x0800

reserved flag for plugin-specific use

Definition at line 421 of file tree_schema.h.

◆ LYEXT_OPT_PLUGIN5

#define LYEXT_OPT_PLUGIN5   0x1000

reserved flag for plugin-specific use

Definition at line 422 of file tree_schema.h.

◆ LYEXT_OPT_PLUGIN6

#define LYEXT_OPT_PLUGIN6   0x2000

reserved flag for plugin-specific use

Definition at line 423 of file tree_schema.h.

◆ LYEXT_OPT_PLUGIN7

#define LYEXT_OPT_PLUGIN7   0x4000

reserved flag for plugin-specific use

Definition at line 424 of file tree_schema.h.

◆ LYEXT_OPT_PLUGIN8

#define LYEXT_OPT_PLUGIN8   0x8000

reserved flag for plugin-specific use

Definition at line 425 of file tree_schema.h.