API to access values. More...

#include <eina_value.h>

Data Fields

unsigned int version
 must be EINA_VALUE_TYPE_VERSION
unsigned int value_size
 byte size of value
const char * name
 name for debug and introspection
Eina_Bool(*) setup (const Eina_Value_Type *type, void *mem)
 mem will be malloc(value_size) and should be configured
Eina_Bool(*) flush (const Eina_Value_Type *type, void *mem)
 clear any values from mem
Eina_Bool(*) copy (const Eina_Value_Type *type, const void *src, void *dst)
 how to copy values, both memory are value_size
int(*) compare (const Eina_Value_Type *type, const void *a, const void *b)
 how to compare values, both memory are value_size
Eina_Bool(*) convert_to (const Eina_Value_Type *type, const Eina_Value_Type *convert, const void *type_mem, void *convert_mem)
 how to convert values, both memory are value_size
Eina_Bool(*) convert_from (const Eina_Value_Type *type, const Eina_Value_Type *convert, void *type_mem, const void *convert_mem)
 how to convert values, both memory are value_size
Eina_Bool(*) vset (const Eina_Value_Type *type, void *mem, va_list args)
 how to set memory from variable argument
Eina_Bool(*) pset (const Eina_Value_Type *type, void *mem, const void *ptr)
 how to set memory from pointer
Eina_Bool(*) pget (const Eina_Value_Type *type, const void *mem, void *ptr)
 how to read memory

Detailed Description

API to access values.

Since
1.2

Field Documentation

◆ version

unsigned int _Eina_Value_Type::version

◆ value_size

unsigned int _Eina_Value_Type::value_size

byte size of value

Examples
eina_value_03.c.

Referenced by eina_value_type_size().

◆ name

const char* _Eina_Value_Type::name

name for debug and introspection

Referenced by eina_value_type_name_get().

◆ copy

Eina_Bool(*) _Eina_Value_Type::copy(const Eina_Value_Type *type, const void *src, void *dst)

how to copy values, both memory are value_size

Referenced by eina_value_copy().

◆ convert_to

Eina_Bool(*) _Eina_Value_Type::convert_to(const Eina_Value_Type *type, const Eina_Value_Type *convert, const void *type_mem, void *convert_mem)

how to convert values, both memory are value_size

Referenced by eina_value_convert().

◆ convert_from

Eina_Bool(*) _Eina_Value_Type::convert_from(const Eina_Value_Type *type, const Eina_Value_Type *convert, void *type_mem, const void *convert_mem)

how to convert values, both memory are value_size

Referenced by eina_value_convert().