Data Structures | |
struct | _Eina_Value_Type |
API to access values. More... | |
Macros | |
#define | EINA_VALUE_TYPE_VERSION (1) |
Current API version, used to validate type. | |
Functions | |
const char * | eina_value_type_name_get (const Eina_Value_Type *type) |
Query type name. More... | |
Eina_Bool | eina_value_type_check (const Eina_Value_Type *type) |
Check if type is valid. More... | |
static Eina_Bool | eina_value_type_setup (const Eina_Value_Type *type, void *mem) |
Initialize memory using type descriptor. More... | |
static Eina_Bool | eina_value_type_flush (const Eina_Value_Type *type, void *mem) |
Flush (clear) memory using type descriptor. More... | |
static Eina_Bool | eina_value_type_copy (const Eina_Value_Type *type, const void *src, void *dst) |
Copy memory using type descriptor. More... | |
static int | eina_value_type_compare (const Eina_Value_Type *type, const void *a, const void *b) |
Compare memory using type descriptor. More... | |
static Eina_Bool | eina_value_type_convert_to (const Eina_Value_Type *type, const Eina_Value_Type *convert, const void *type_mem, void *convert_mem) |
Convert memory using type descriptor. More... | |
static Eina_Bool | eina_value_type_convert_from (const Eina_Value_Type *type, const Eina_Value_Type *convert, void *type_mem, const void *convert_mem) |
Convert memory using type descriptor. More... | |
static Eina_Bool | eina_value_type_vset (const Eina_Value_Type *type, void *mem, va_list args) |
Set memory using type descriptor and variable argument. More... | |
static Eina_Bool | eina_value_type_pset (const Eina_Value_Type *type, void *mem, const void *ptr) |
Set memory using type descriptor and pointer. More... | |
static Eina_Bool | eina_value_type_pget (const Eina_Value_Type *type, const void *mem, void *ptr) |
Get memory using type descriptor. More... | |
const char* eina_value_type_name_get | ( | const Eina_Value_Type * | type | ) |
Query type name.
type | type reference. |
NULL
if type is invalid. References eina_value_type_check(), and _Eina_Value_Type::name.
Eina_Bool eina_value_type_check | ( | const Eina_Value_Type * | type | ) |
Check if type is valid.
type | type reference. |
A type is invalid if it's NULL or if version field is not the same as runtime EINA_VALUE_TYPE_VERSION.
References EAPI, EINA_FALSE, EINA_VALUE_TYPE_VERSION, and _Eina_Value_Type::version.
Referenced by eina_value_array_new(), eina_value_convert(), eina_value_copy(), eina_value_hash_new(), eina_value_list_new(), eina_value_to_string(), and eina_value_type_name_get().
|
inlinestatic |
Initialize memory using type descriptor.
type | type reference. |
mem | memory to operate, must be of size type->value_size . |
|
inlinestatic |
Flush (clear) memory using type descriptor.
type | type reference. |
mem | memory to operate, must be of size type->value_size . |
|
inlinestatic |
Copy memory using type descriptor.
type | type reference. |
src | memory to operate, must be of size type->value_size . |
dst | memory to operate, must be of size type->value_size . |
|
inlinestatic |
Compare memory using type descriptor.
type | type reference. |
a | memory to operate, must be of size type->value_size . |
b | memory to operate, must be of size type->value_size . |
|
inlinestatic |
Convert memory using type descriptor.
type | type reference of the source. |
convert | type reference of the destination. |
type_mem | memory to operate, must be of size type->value_size . |
convert_mem | memory to operate, must be of size convert->value_size . |
|
inlinestatic |
Convert memory using type descriptor.
type | type reference of the destination. |
convert | type reference of the source. |
type_mem | memory to operate, must be of size type->value_size . |
convert_mem | memory to operate, must be of size convert->value_size . |
|
inlinestatic |
Set memory using type descriptor and variable argument.
type | type reference of the source. |
mem | memory to operate, must be of size type->value_size . |
args | input value. |
|
inlinestatic |
Set memory using type descriptor and pointer.
type | type reference of the source. |
mem | memory to operate, must be of size type->value_size . |
ptr | pointer to input value. |
|
inlinestatic |
Get memory using type descriptor.
type | type reference of the source. |
mem | memory to operate, must be of size type->value_size . |
ptr | pointer to output. |