libyang  2.0.7
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
Schema nodes flags
Collaboration diagram for Schema nodes flags:

Modules

 Compiled schema nodes flags
 
 Parsed schema nodes flags
 

Macros

#define LYS_CONFIG_MASK   0x03
 
#define LYS_CONFIG_R   0x02
 
#define LYS_CONFIG_W   0x01
 
#define LYS_DOUBLEQUOTED   0x0200
 
#define LYS_FENABLED   0x20
 
#define LYS_FLAGS_COMPILED_MASK   0xff
 
#define LYS_INTERNAL   0x1000
 
#define LYS_IS_ENUM   0x0200
 
#define LYS_IS_INPUT   0x1000
 
#define LYS_IS_NOTIF   0x4000
 
#define LYS_IS_OUTPUT   0x2000
 
#define LYS_KEY   0x0100
 
#define LYS_KEYLESS   0x0200
 
#define LYS_MAND_FALSE   0x40
 
#define LYS_MAND_MASK   0x60
 
#define LYS_MAND_TRUE   0x20
 
#define LYS_ORDBY_MASK   0x60
 
#define LYS_ORDBY_SYSTEM   0x80
 
#define LYS_ORDBY_USER   0x40
 
#define LYS_PRESENCE   0x80
 
#define LYS_SET_BASE   0x0001
 
#define LYS_SET_BIT   0x0002
 
#define LYS_SET_CONFIG   0x0800
 
#define LYS_SET_DFLT   0x0200
 
#define LYS_SET_ENUM   0x0004
 
#define LYS_SET_FRDIGITS   0x0008
 
#define LYS_SET_LENGTH   0x0010
 
#define LYS_SET_MAX   0x0400
 
#define LYS_SET_MIN   0x0200
 
#define LYS_SET_PATH   0x0020
 
#define LYS_SET_PATTERN   0x0040
 
#define LYS_SET_RANGE   0x0080
 
#define LYS_SET_REQINST   0x0200
 
#define LYS_SET_TYPE   0x0100
 
#define LYS_SET_UNITS   0x0400
 
#define LYS_SET_VALUE   0x0200
 
#define LYS_SINGLEQUOTED   0x0100
 
#define LYS_STATUS_CURR   0x04
 
#define LYS_STATUS_DEPRC   0x08
 
#define LYS_STATUS_MASK   0x1C
 
#define LYS_STATUS_OBSLT   0x10
 
#define LYS_UNIQUE   0x80
 
#define LYS_USED_GRP   0x0400
 
#define LYS_YIN_ARGUMENT   0x0800
 
#define LYS_YIN_ATTR   0x0400
 
#define LYS_YINELEM_FALSE   0x0100
 
#define LYS_YINELEM_MASK   0x0180
 
#define LYS_YINELEM_TRUE   0x80
 

Detailed Description

Various flags for schema nodes (parsed as well as compiled).

Macro Definition Documentation

◆ LYS_CONFIG_MASK

#define LYS_CONFIG_MASK   0x03

mask for config value

Definition at line 884 of file tree_schema.h.

◆ LYS_CONFIG_R

#define LYS_CONFIG_R   0x02

config false;

Definition at line 883 of file tree_schema.h.

◆ LYS_CONFIG_W

#define LYS_CONFIG_W   0x01

config true;

Definition at line 882 of file tree_schema.h.

◆ LYS_DOUBLEQUOTED

#define LYS_DOUBLEQUOTED   0x0200

flag for double-quoted argument of an extension instance's substatement, only when the source is YANG

Definition at line 939 of file tree_schema.h.

◆ LYS_FENABLED

#define LYS_FENABLED   0x20

feature enabled flag, applicable only to lysp_feature.

Definition at line 904 of file tree_schema.h.

◆ LYS_FLAGS_COMPILED_MASK

#define LYS_FLAGS_COMPILED_MASK   0xff

mask for flags that maps to the compiled structures

Definition at line 954 of file tree_schema.h.

◆ LYS_INTERNAL

#define LYS_INTERNAL   0x1000

flag to identify internal parsed statements that should not be printed

Definition at line 944 of file tree_schema.h.

◆ LYS_IS_ENUM

#define LYS_IS_ENUM   0x0200

flag to simply distinguish type in struct lysc_type_bitenum_item

Definition at line 946 of file tree_schema.h.

◆ LYS_IS_INPUT

#define LYS_IS_INPUT   0x1000

flag for nodes that are in the subtree of an input statement

Definition at line 948 of file tree_schema.h.

◆ LYS_IS_NOTIF

#define LYS_IS_NOTIF   0x4000

flag for nodes that are in the subtree of a notification statement

Definition at line 952 of file tree_schema.h.

◆ LYS_IS_OUTPUT

#define LYS_IS_OUTPUT   0x2000

flag for nodes that are in the subtree of an output statement

Definition at line 950 of file tree_schema.h.

◆ LYS_KEY

#define LYS_KEY   0x0100

flag for leafs being a key of a list, applicable only to lysc_node_leaf

Definition at line 902 of file tree_schema.h.

◆ LYS_KEYLESS

#define LYS_KEYLESS   0x0200

flag for list without any key, applicable only to lysc_node_list

Definition at line 903 of file tree_schema.h.

◆ LYS_MAND_FALSE

#define LYS_MAND_FALSE   0x40

mandatory false; applicable only to lysp_node_choice/lysc_node_choice, lysp_node_leaf/lysc_node_leaf and lysp_node_anydata/lysc_node_anydata. This flag is present only in case the mandatory false statement was explicitly specified.

Definition at line 896 of file tree_schema.h.

◆ LYS_MAND_MASK

#define LYS_MAND_MASK   0x60

mask for mandatory values

Definition at line 897 of file tree_schema.h.

◆ LYS_MAND_TRUE

#define LYS_MAND_TRUE   0x20

mandatory true; applicable only to lysp_node_choice/lysc_node_choice, lysp_node_leaf/lysc_node_leaf and lysp_node_anydata/lysc_node_anydata. The lysc_node_leaflist and lysc_node_leaflist have this flag in case that min-elements > 0. The lysc_node_container has this flag if it is not a presence container and it has at least one child with LYS_MAND_TRUE.

Definition at line 893 of file tree_schema.h.

◆ LYS_ORDBY_MASK

#define LYS_ORDBY_MASK   0x60

mask for ordered-by values

Definition at line 910 of file tree_schema.h.

◆ LYS_ORDBY_SYSTEM

#define LYS_ORDBY_SYSTEM   0x80

ordered-by system configuration lists, applicable only to lysc_node_leaflist/lysp_node_leaflist and lysc_node_list/lysp_node_list

Definition at line 906 of file tree_schema.h.

◆ LYS_ORDBY_USER

#define LYS_ORDBY_USER   0x40

ordered-by user configuration lists, applicable only to lysc_node_leaflist/lysp_node_leaflist and lysc_node_list/lysp_node_list; is always set for state leaf-lists, and key-less lists

Definition at line 909 of file tree_schema.h.

◆ LYS_PRESENCE

#define LYS_PRESENCE   0x80

flag for presence property of a container, but it is not only for explicit presence containers, but also for NP containers with some meaning, applicable only to lysc_node_container

Definition at line 900 of file tree_schema.h.

◆ LYS_SET_BASE

#define LYS_SET_BASE   0x0001

type's flag for present base substatement

Definition at line 920 of file tree_schema.h.

◆ LYS_SET_BIT

#define LYS_SET_BIT   0x0002

type's flag for present bit substatement

Definition at line 921 of file tree_schema.h.

◆ LYS_SET_CONFIG

#define LYS_SET_CONFIG   0x0800

flag to know if the config property was set explicitly (flag set) or it is inherited.

Definition at line 936 of file tree_schema.h.

◆ LYS_SET_DFLT

#define LYS_SET_DFLT   0x0200

flag to mark leaf/leaflist with own (or refined) default value, not a default value taken from its type, and default cases of choice. This information is important for refines, since it is prohibited to make leafs with default statement mandatory. In case the default leaf value is taken from type, it is thrown away when it is refined to be mandatory node. Similarly it is used for deviations to distinguish between own default or the default values taken from the type.

Definition at line 934 of file tree_schema.h.

◆ LYS_SET_ENUM

#define LYS_SET_ENUM   0x0004

type's flag for present enum substatement

Definition at line 922 of file tree_schema.h.

◆ LYS_SET_FRDIGITS

#define LYS_SET_FRDIGITS   0x0008

type's flag for present fraction-digits substatement

Definition at line 923 of file tree_schema.h.

◆ LYS_SET_LENGTH

#define LYS_SET_LENGTH   0x0010

type's flag for present length substatement

Definition at line 924 of file tree_schema.h.

◆ LYS_SET_MAX

#define LYS_SET_MAX   0x0400

max attribute is set

Definition at line 918 of file tree_schema.h.

◆ LYS_SET_MIN

#define LYS_SET_MIN   0x0200

min attribute is set

Definition at line 917 of file tree_schema.h.

◆ LYS_SET_PATH

#define LYS_SET_PATH   0x0020

type's flag for present path substatement

Definition at line 925 of file tree_schema.h.

◆ LYS_SET_PATTERN

#define LYS_SET_PATTERN   0x0040

type's flag for present pattern substatement

Definition at line 926 of file tree_schema.h.

◆ LYS_SET_RANGE

#define LYS_SET_RANGE   0x0080

type's flag for present range substatement

Definition at line 927 of file tree_schema.h.

◆ LYS_SET_REQINST

#define LYS_SET_REQINST   0x0200

type's flag for present require-instance substatement

Definition at line 929 of file tree_schema.h.

◆ LYS_SET_TYPE

#define LYS_SET_TYPE   0x0100

type's flag for present type substatement

Definition at line 928 of file tree_schema.h.

◆ LYS_SET_UNITS

#define LYS_SET_UNITS   0x0400

flag to know if the leaf's/leaflist's units are their own (flag set) or it is taken from the type.

Definition at line 935 of file tree_schema.h.

◆ LYS_SET_VALUE

#define LYS_SET_VALUE   0x0200

value attribute is set

Definition at line 916 of file tree_schema.h.

◆ LYS_SINGLEQUOTED

#define LYS_SINGLEQUOTED   0x0100

flag for single-quoted argument of an extension instance's substatement, only when the source is YANG

Definition at line 938 of file tree_schema.h.

◆ LYS_STATUS_CURR

#define LYS_STATUS_CURR   0x04

status current;

Definition at line 885 of file tree_schema.h.

◆ LYS_STATUS_DEPRC

#define LYS_STATUS_DEPRC   0x08

status deprecated;

Definition at line 886 of file tree_schema.h.

◆ LYS_STATUS_MASK

#define LYS_STATUS_MASK   0x1C

mask for status value

Definition at line 888 of file tree_schema.h.

◆ LYS_STATUS_OBSLT

#define LYS_STATUS_OBSLT   0x10

status obsolete;

Definition at line 887 of file tree_schema.h.

◆ LYS_UNIQUE

#define LYS_UNIQUE   0x80

flag for leafs being part of a unique set, applicable only to lysc_node_leaf

Definition at line 901 of file tree_schema.h.

◆ LYS_USED_GRP

#define LYS_USED_GRP   0x0400

internal flag for validating not-instantiated groupings (resp. do not validate again the instantiated groupings).

Definition at line 915 of file tree_schema.h.

◆ LYS_YIN_ARGUMENT

#define LYS_YIN_ARGUMENT   0x0800

flag to identify statement representing extension's argument, only when the source is YIN

Definition at line 942 of file tree_schema.h.

◆ LYS_YIN_ATTR

#define LYS_YIN_ATTR   0x0400

flag to identify YIN attribute parsed as extension's substatement, only when the source is YIN

Definition at line 941 of file tree_schema.h.

◆ LYS_YINELEM_FALSE

#define LYS_YINELEM_FALSE   0x0100

yin-element false for extension's argument

Definition at line 912 of file tree_schema.h.

◆ LYS_YINELEM_MASK

#define LYS_YINELEM_MASK   0x0180

mask for yin-element value

Definition at line 913 of file tree_schema.h.

◆ LYS_YINELEM_TRUE

#define LYS_YINELEM_TRUE   0x80

yin-element true for extension's argument

Definition at line 911 of file tree_schema.h.