Tizen(Headed) Native API
6.5
|
Functions | |
const char * | eina_value_type_name_get (const Eina_Value_Type *type) |
Queries type name. | |
Eina_Bool | eina_value_type_check (const Eina_Value_Type *type) |
Checks if type is valid. | |
static Eina_Bool | eina_value_type_setup (const Eina_Value_Type *type, void *mem) |
Initializes memory using type descriptor. | |
static Eina_Bool | eina_value_type_flush (const Eina_Value_Type *type, void *mem) |
Flushes (clears) memory using type descriptor. | |
static Eina_Bool | eina_value_type_copy (const Eina_Value_Type *type, const void *src, void *dst) |
Copies memory using type descriptor. | |
static int | eina_value_type_compare (const Eina_Value_Type *type, const void *a, const void *b) |
Compares memory using type descriptor. | |
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) |
Converts memory using type descriptor. | |
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) |
Converts memory using type descriptor. | |
static Eina_Bool | eina_value_type_vset (const Eina_Value_Type *type, void *mem, va_list args) |
Sets memory using type descriptor and variable argument. | |
static Eina_Bool | eina_value_type_pset (const Eina_Value_Type *type, void *mem, const void *ptr) |
Sets memory using type descriptor and pointer. | |
static Eina_Bool | eina_value_type_pget (const Eina_Value_Type *type, const void *mem, void *ptr) |
Gets memory using type descriptor. | |
Defines | |
#define | EINA_VALUE_TYPE_VERSION (1) |
Define Documentation
#define EINA_VALUE_TYPE_VERSION (1) |
Current API version, used to validate type.
- Examples:
- eina_value_03.c.
Function Documentation
Eina_Bool eina_value_type_check | ( | const Eina_Value_Type * | type | ) |
Checks if type is valid.
- Parameters:
-
[in] type Type reference.
- Returns:
- EINA_TRUE if valid, EINA_FALSE otherwise.
A type is invalid if it's NULL
or if version field is not the same as runtime EINA_VALUE_TYPE_VERSION.
- Since (EFL) :
- 1.2
- Since :
- 3.0
static int eina_value_type_compare | ( | const Eina_Value_Type * | type, |
const void * | a, | ||
const void * | b | ||
) | [static] |
Compares memory using type descriptor.
- Parameters:
-
[in] type type reference. [in] a memory to operate, must be of size type->value_size
.[in] b memory to operate, must be of size type->value_size
.
- Returns:
- less than zero if a < b, greater than zero if a > b, zero if equal.
- Since (EFL) :
- 1.2
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 | ||
) | [static] |
Converts memory using type descriptor.
- Parameters:
-
[in] type type reference of the destination. [in] convert type reference of the source. [out] type_mem memory to operate, must be of size type->value_size
.[in] convert_mem memory to operate, must be of size convert->value_size
.
- Returns:
- EINA_TRUE on success, EINA_FALSE otherwise.
- Since (EFL) :
- 1.2
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 | ||
) | [static] |
Converts memory using type descriptor.
- Parameters:
-
[in] type type reference of the source. [in] convert type reference of the destination. [in] type_mem memory to operate, must be of size type->value_size
.[out] convert_mem memory to operate, must be of size convert->value_size
.
- Returns:
- EINA_TRUE on success, EINA_FALSE otherwise.
- Since (EFL) :
- 1.2
static Eina_Bool eina_value_type_copy | ( | const Eina_Value_Type * | type, |
const void * | src, | ||
void * | dst | ||
) | [static] |
Copies memory using type descriptor.
- Parameters:
-
[in] type type reference. [in] src memory to operate, must be of size type->value_size
.[out] dst memory to operate, must be of size type->value_size
.
- Returns:
- EINA_TRUE on success, EINA_FALSE otherwise.
- Since (EFL) :
- 1.2
static Eina_Bool eina_value_type_flush | ( | const Eina_Value_Type * | type, |
void * | mem | ||
) | [static] |
Flushes (clears) memory using type descriptor.
- Parameters:
-
[in] type type reference. [out] mem memory to operate, must be of size type->value_size
.
- Returns:
- EINA_TRUE on success, EINA_FALSE otherwise.
- Since (EFL) :
- 1.2
const char* eina_value_type_name_get | ( | const Eina_Value_Type * | type | ) |
Queries type name.
- Parameters:
-
[in] type type reference.
- Returns:
- string or
NULL
if type is invalid.
- Since (EFL) :
- 1.2
- Since :
- 3.0
static Eina_Bool eina_value_type_pget | ( | const Eina_Value_Type * | type, |
const void * | mem, | ||
void * | ptr | ||
) | [static] |
Gets memory using type descriptor.
- Parameters:
-
[in] type type reference of the source. [in] mem memory to operate, must be of size type->value_size
.[out] ptr pointer to output.
- Returns:
- EINA_TRUE on success, EINA_FALSE otherwise.
- Since (EFL) :
- 1.2
static Eina_Bool eina_value_type_pset | ( | const Eina_Value_Type * | type, |
void * | mem, | ||
const void * | ptr | ||
) | [static] |
Sets memory using type descriptor and pointer.
- Parameters:
-
[in] type type reference of the source. [out] mem memory to operate, must be of size type->value_size
.[in] ptr pointer to input value.
- Returns:
- EINA_TRUE on success, EINA_FALSE otherwise.
- Since (EFL) :
- 1.2
- Examples:
- eina_value_03.c.
static Eina_Bool eina_value_type_setup | ( | const Eina_Value_Type * | type, |
void * | mem | ||
) | [static] |
Initializes memory using type descriptor.
- Parameters:
-
[in] type type reference. [out] mem memory to operate, must be of size type->value_size
.
- Returns:
- EINA_TRUE on success, EINA_FALSE otherwise.
- Since (EFL) :
- 1.2
static Eina_Bool eina_value_type_vset | ( | const Eina_Value_Type * | type, |
void * | mem, | ||
va_list | args | ||
) | [static] |
Sets memory using type descriptor and variable argument.
- Parameters:
-
[in] type type reference of the source. [out] mem memory to operate, must be of size type->value_size
.[in] args input value.
- Returns:
- EINA_TRUE on success, EINA_FALSE otherwise.
- Since (EFL) :
- 1.2