Loading...
Searching...
No Matches
Plugins: Type store callback options.
Plugins: Types
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
#define | LYPLG_TYPE_STORE_ONLY 0x08

## Detailed Description

Options applicable to lyplg_type_store_clb().

## Macro Definition Documentation

## LYPLG_TYPE_STORE_DYNAMIC

#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 471 of file plugins_types.h.

## LYPLG_TYPE_STORE_IMPLEMENT

#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 475 of file plugins_types.h.

## LYPLG_TYPE_STORE_IS_UTF8

#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 477 of file plugins_types.h.

## LYPLG_TYPE_STORE_ONLY

#define LYPLG_TYPE_STORE_ONLY 0x08

The value is stored only, type-specific validation is skipped (performed before)

Definition at line 478 of file plugins_types.h.