![]() |
libyang 1.0.184
YANG data modeling language library
|
Attribute structure. More...
#include <tree_data.h>
Public Member Functions | |
| LY_DATA_TYPE | __attribute__ ((__packed__)) value_type |
Data Fields | |
| struct lyd_node * | parent |
| struct lyd_attr * | next |
| struct lys_ext_instance_complex * | annotation |
| const char * | name |
| const char * | value_str |
| lyd_val | value |
| uint8_t | value_flags |
Attribute structure.
The structure provides information about attributes of a data element. Such attributes must map to annotations as specified in RFC 7952. The only exception is the filter type (in NETCONF get operations) and edit-config's operation attributes. In XML, they are represented as standard XML attributes. In JSON, they are represented as JSON elements starting with the '@' character (for more information, see the YANG metadata RFC.
Definition at line 128 of file tree_data.h.
| LY_DATA_TYPE __attribute__ | ( | (__packed__) | ) |
type of the value in the node, mainly for union to avoid repeating of type detection
| struct lyd_node* parent |
data node where the attribute is placed
Definition at line 129 of file tree_data.h.
| struct lyd_attr* next |
pointer to the next attribute of the same element
Definition at line 130 of file tree_data.h.
| struct lys_ext_instance_complex* annotation |
pointer to the attribute/annotation's definition
Definition at line 131 of file tree_data.h.
| const char* name |
attribute name
Definition at line 132 of file tree_data.h.
| const char* value_str |
string representation of value (for comparison, printing,...), always corresponds to value_type
Definition at line 133 of file tree_data.h.
| lyd_val value |
node's value representation, always corresponds to schema->type.base
Definition at line 134 of file tree_data.h.
| uint8_t value_flags |
value type flags
Definition at line 136 of file tree_data.h.