libyang  2.1.148
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
Plugins: Type store callback options.
Collaboration diagram for Plugins: Type store callback options.:

Macros

#define LYPLG_TYPE_STORE_DYNAMIC   0x01
 
#define LYPLG_TYPE_STORE_IMPLEMENT   0x02
 
#define LYPLG_TYPE_STORE_IS_UTF8   0x04
 

Detailed Description

Options applicable to lyplg_type_store_clb().

Macro Definition Documentation

#define LYPLG_TYPE_STORE_DYNAMIC   0x01

Value was dynamically allocated in its exact size and is supposed to be freed or directly inserted into the context's dictionary (e.g. in case of canonization). In any case, the caller of the callback does not free the provided value after calling the type's store callback with this option.

Definition at line 470 of file plugins_types.h.

#define LYPLG_TYPE_STORE_IMPLEMENT   0x02

If a foreign module is needed to be implemented to successfully instantiate the value, make the module implemented.

Definition at line 477 of file plugins_types.h.

#define LYPLG_TYPE_STORE_IS_UTF8   0x04

The value is guaranteed to be a valid UTF-8 string, if applicable for the type.

Definition at line 480 of file plugins_types.h.