libyang  1.0.253
YANG data modeling language library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Schema nodes flags
Collaboration diagram for Schema nodes flags:

Macros

#define LYS_CONFIG_W   0x01
 
#define LYS_CONFIG_R   0x02
 
#define LYS_CONFIG_SET   0x04
 
#define LYS_CONFIG_MASK   0x03
 
#define LYS_STATUS_CURR   0x08
 
#define LYS_STATUS_DEPRC   0x10
 
#define LYS_STATUS_OBSLT   0x20
 
#define LYS_STATUS_MASK   0x38
 
#define LYS_RFN_MAXSET   0x08
 
#define LYS_RFN_MINSET   0x10
 
#define LYS_MAND_TRUE   0x40
 
#define LYS_MAND_FALSE   0x80
 
#define LYS_INCL_STATUS   0x80
 
#define LYS_MAND_MASK   0xc0
 
#define LYS_USERORDERED   0x100
 
#define LYS_FENABLED   0x100
 
#define LYS_UNIQUE   0x100
 
#define LYS_AUTOASSIGNED   0x01
 
#define LYS_USESGRP   0x01
 
#define LYS_IMPLICIT   0x40
 
#define LYS_XPCONF_DEP   0x200
 
#define LYS_XPSTATE_DEP   0x400
 
#define LYS_LEAFREF_DEP   0x800
 
#define LYS_DFLTJSON   0x1000
 
#define LYS_NOTAPPLIED   0x01
 
#define LYS_YINELEM   0x01
 
#define LYS_VALID_EXT   0x2000
 
#define LYS_VALID_EXT_SUBTREE   0x4000
 

Detailed Description

Various flags for schema nodes.

1 - container    6 - anydata/anyxml    11 - output       16 - type(def)
2 - choice       7 - case              12 - grouping     17 - identity
3 - leaf         8 - notification      13 - uses         18 - refine
4 - leaflist     9 - rpc               14 - augment      19 - extension
5 - list        10 - input             15 - feature

                                       1 1 1 1 1 1 1 1 1 1
                     1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
--------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 1 LYS_USESGRP      | | | | | | | | | | | | |x| | | | | | |
   LYS_AUTOASSIGNED | | | | | | | | | | | | | | | |x| | | |
   LYS_CONFIG_W     |x|x|x|x|x|x|x| | | | | | | | | | |x| |
   LYS_NOTAPPLIED   | | | | | | | | | | | | | |x| | | | | |
   LYS_YINELEM      | | | | | | | | | | | | | | | | | | |x|
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 2 LYS_CONFIG_R     |x|x|x|x|x|x|x| | | | | | | | | | |x| |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 3 LYS_CONFIG_SET   |x|x|x|x|x|x| | | | | | | | | | | | | |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 4 LYS_STATUS_CURR  |x|x|x|x|x|x|x|x|x| | |x|x|x|x|x|x| |x|
   LYS_RFN_MAXSET   | | | | | | | | | | | | | | | | | |x| |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 5 LYS_STATUS_DEPRC |x|x|x|x|x|x|x|x|x| | |x|x|x|x|x|x| |x|
   LYS_RFN_MINSET   | | | | | | | | | | | | | | | | | |x| |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 6 LYS_STATUS_OBSLT |x|x|x|x|x|x|x|x|x| | |x|x|x|x|x|x| |x|
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 7 LYS_MAND_TRUE    | |x|x| | |x| | | | | | | | | | | |x| |
   LYS_IMPLICIT     | | | | | | |x| | |x|x| | | | | | | | |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 8 LYS_MAND_FALSE   | |x|x| | |x| | | | | | | | | | | |x| |
   LYS_INCL_STATUS  |x| | | |x| | | | | | | | | | | | | | |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 9 LYS_USERORDERED  | | | |x|x| | | | | | | | | | | | |r| |
   LYS_UNIQUE       | | |x| | | | | | | | | | | | | | |r| |
   LYS_FENABLED     | | | | | | | | | | | | | | |x| | |r| |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
10 LYS_XPCONF_DEP   |x|x|x|x|x|x|x|x|x|x|x| |x|x| | | |r| |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
11 LYS_XPSTATE_DEP  |x|x|x|x|x|x|x|x|x|x|x| |x|x| | | |r| |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
12 LYS_LEAFREF_DEP  |x|x|x|x|x|x|x|x|x|x|x| |x|x| | | |r| |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
13 LYS_DFLTJSON     | | |x|x| | | | | | | | | | | |x| |r| |
                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
14 LYS_VALID_EXT    |x| |x|x|x|x| | | | | | | | | |x| | | |
--------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

x - used
r - reserved for internal use

Macro Definition Documentation

#define LYS_CONFIG_W   0x01

config true;

Definition at line 1142 of file tree_schema.h.

#define LYS_CONFIG_R   0x02

config false;

Definition at line 1143 of file tree_schema.h.

#define LYS_CONFIG_SET   0x04

config explicitely set in the node

Definition at line 1144 of file tree_schema.h.

#define LYS_CONFIG_MASK   0x03

mask for config value

Definition at line 1145 of file tree_schema.h.

#define LYS_STATUS_CURR   0x08

status current;

Definition at line 1146 of file tree_schema.h.

#define LYS_STATUS_DEPRC   0x10

status deprecated;

Definition at line 1147 of file tree_schema.h.

#define LYS_STATUS_OBSLT   0x20

status obsolete;

Definition at line 1148 of file tree_schema.h.

#define LYS_STATUS_MASK   0x38

mask for status value

Definition at line 1149 of file tree_schema.h.

#define LYS_RFN_MAXSET   0x08

refine has max-elements set

Definition at line 1150 of file tree_schema.h.

#define LYS_RFN_MINSET   0x10

refine has min-elements set

Definition at line 1151 of file tree_schema.h.

#define LYS_MAND_TRUE   0x40

mandatory true; applicable only to lys_node_choice, lys_node_leaf and lys_node_anydata

Definition at line 1152 of file tree_schema.h.

#define LYS_MAND_FALSE   0x80

mandatory false; applicable only to lys_node_choice, lys_node_leaf and lys_node_anydata

Definition at line 1155 of file tree_schema.h.

#define LYS_INCL_STATUS   0x80

flag that the subtree includes status node(s), applicable only to lys_node_container and lys_node_list

Definition at line 1158 of file tree_schema.h.

#define LYS_MAND_MASK   0xc0

mask for mandatory values

Definition at line 1161 of file tree_schema.h.

#define LYS_USERORDERED   0x100

ordered-by user lists, applicable only to lys_node_list and lys_node_leaflist

Definition at line 1162 of file tree_schema.h.

#define LYS_FENABLED   0x100

feature enabled flag, applicable only to lys_feature

Definition at line 1165 of file tree_schema.h.

#define LYS_UNIQUE   0x100

part of the list's unique, applicable only to lys_node_leaf

Definition at line 1166 of file tree_schema.h.

#define LYS_AUTOASSIGNED   0x01

value was auto-assigned, applicable only to lys_type enum and bits flags

Definition at line 1167 of file tree_schema.h.

#define LYS_USESGRP   0x01

flag for resolving uses in groupings, applicable only to lys_node_uses

Definition at line 1170 of file tree_schema.h.

#define LYS_IMPLICIT   0x40

flag for implicitely created LYS_INPUT, LYS_OUTPUT and LYS_CASE nodes

Definition at line 1171 of file tree_schema.h.

#define LYS_XPCONF_DEP   0x200

flag marking nodes, whose validation (when, must expressions) depends on configuration data nodes outside their subtree (applicable only to RPCs, notifications, and actions)

Definition at line 1172 of file tree_schema.h.

#define LYS_XPSTATE_DEP   0x400

flag marking nodes, whose validation (when, must expressions) depends on state data nodes outside their subtree (applicable only to RPCs, notifications, and actions)

Definition at line 1177 of file tree_schema.h.

#define LYS_LEAFREF_DEP   0x800

flag marking nodes, whose validation (leafrefs) depends on nodes outside their subtree (applicable to RPCs, notifications, actions) or outside their module (applicate to data)

Definition at line 1182 of file tree_schema.h.

#define LYS_DFLTJSON   0x1000

default value (in lys_node_leaf, lys_node_leaflist, :lys_tpdf) was converted into JSON format, since it contains identityref value which is being used in JSON format (instead of module prefixes, we use the module names)

Definition at line 1187 of file tree_schema.h.

#define LYS_NOTAPPLIED   0x01

flag for the not applied augments to allow keeping the resolved target

Definition at line 1194 of file tree_schema.h.

#define LYS_YINELEM   0x01

yin-element true for extension's argument

Definition at line 1195 of file tree_schema.h.

#define LYS_VALID_EXT   0x2000

flag marking nodes that need to be validated using an extension validation function

Definition at line 1196 of file tree_schema.h.

#define LYS_VALID_EXT_SUBTREE   0x4000

flag marking nodes that need to be validated using an extension validation function when one of their children nodes is modified

Definition at line 1197 of file tree_schema.h.