libyang  3.6.1
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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_DISABLED   0x0100
 
#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   0xC0
 
#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

#define LYS_CONFIG_MASK   0x03

mask for config value

Definition at line 655 of file tree_schema.h.

#define LYS_CONFIG_R   0x02

config false;

Definition at line 654 of file tree_schema.h.

#define LYS_CONFIG_W   0x01

config true;

Definition at line 653 of file tree_schema.h.

#define LYS_DISABLED   0x0100

internal flag for a disabled statement, used only for bits/enums

Definition at line 683 of file tree_schema.h.

#define LYS_DOUBLEQUOTED   0x0200

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

Definition at line 729 of file tree_schema.h.

#define LYS_FENABLED   0x20

feature enabled flag, applicable only to lysp_feature.

Definition at line 684 of file tree_schema.h.

#define LYS_FLAGS_COMPILED_MASK   0xff

mask for flags that maps to the compiled structures

Definition at line 746 of file tree_schema.h.

#define LYS_INTERNAL   0x1000

flag to identify internal parsed statements that should not be printed

Definition at line 736 of file tree_schema.h.

#define LYS_IS_ENUM   0x0200

flag to simply distinguish type in struct lysc_type_bitenum_item

Definition at line 738 of file tree_schema.h.

#define LYS_IS_INPUT   0x1000

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

Definition at line 740 of file tree_schema.h.

#define LYS_IS_NOTIF   0x4000

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

Definition at line 744 of file tree_schema.h.

#define LYS_IS_OUTPUT   0x2000

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

Definition at line 742 of file tree_schema.h.

#define LYS_KEY   0x0100

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

Definition at line 681 of file tree_schema.h.

#define LYS_KEYLESS   0x0200

flag for list without any key, applicable only to lysc_node_list

Definition at line 682 of file tree_schema.h.

#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 669 of file tree_schema.h.

#define LYS_MAND_MASK   0x60

mask for mandatory values

Definition at line 674 of file tree_schema.h.

#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 660 of file tree_schema.h.

#define LYS_ORDBY_MASK   0xC0

mask for ordered-by values

Definition at line 693 of file tree_schema.h.

#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 685 of file tree_schema.h.

#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 688 of file tree_schema.h.

#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 675 of file tree_schema.h.

#define LYS_SET_BASE   0x0001

type's flag for present base substatement

Definition at line 704 of file tree_schema.h.

#define LYS_SET_BIT   0x0002

type's flag for present bit substatement

Definition at line 705 of file tree_schema.h.

#define LYS_SET_CONFIG   0x0800

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

Definition at line 724 of file tree_schema.h.

#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 714 of file tree_schema.h.

#define LYS_SET_ENUM   0x0004

type's flag for present enum substatement

Definition at line 706 of file tree_schema.h.

#define LYS_SET_FRDIGITS   0x0008

type's flag for present fraction-digits substatement

Definition at line 707 of file tree_schema.h.

#define LYS_SET_LENGTH   0x0010

type's flag for present length substatement

Definition at line 708 of file tree_schema.h.

#define LYS_SET_MAX   0x0400

max attribute is set

Definition at line 702 of file tree_schema.h.

#define LYS_SET_MIN   0x0200

min attribute is set

Definition at line 701 of file tree_schema.h.

#define LYS_SET_PATH   0x0020

type's flag for present path substatement

Definition at line 709 of file tree_schema.h.

#define LYS_SET_PATTERN   0x0040

type's flag for present pattern substatement

Definition at line 710 of file tree_schema.h.

#define LYS_SET_RANGE   0x0080

type's flag for present range substatement

Definition at line 711 of file tree_schema.h.

#define LYS_SET_REQINST   0x0200

type's flag for present require-instance substatement

Definition at line 713 of file tree_schema.h.

#define LYS_SET_TYPE   0x0100

type's flag for present type substatement

Definition at line 712 of file tree_schema.h.

#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 723 of file tree_schema.h.

#define LYS_SET_VALUE   0x0200

value attribute is set

Definition at line 700 of file tree_schema.h.

#define LYS_SINGLEQUOTED   0x0100

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

Definition at line 726 of file tree_schema.h.

#define LYS_STATUS_CURR   0x04

status current;

Definition at line 656 of file tree_schema.h.

#define LYS_STATUS_DEPRC   0x08

status deprecated;

Definition at line 657 of file tree_schema.h.

#define LYS_STATUS_MASK   0x1C

mask for status value

Definition at line 659 of file tree_schema.h.

#define LYS_STATUS_OBSLT   0x10

status obsolete;

Definition at line 658 of file tree_schema.h.

#define LYS_UNIQUE   0x80

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

Definition at line 680 of file tree_schema.h.

#define LYS_USED_GRP   0x0400

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

Definition at line 697 of file tree_schema.h.

#define LYS_YIN_ARGUMENT   0x0800

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

Definition at line 734 of file tree_schema.h.

#define LYS_YIN_ATTR   0x0400

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

Definition at line 733 of file tree_schema.h.

#define LYS_YINELEM_FALSE   0x0100

yin-element false for extension's argument

Definition at line 695 of file tree_schema.h.

#define LYS_YINELEM_MASK   0x0180

mask for yin-element value

Definition at line 696 of file tree_schema.h.

#define LYS_YINELEM_TRUE   0x80

yin-element true for extension's argument

Definition at line 694 of file tree_schema.h.