Tizen Native API
5.5
|
Functions | |
Eina_Value * | eina_value_list_new (const Eina_Value_Type *subtype) |
Creates generic value storage of type list. | |
static Eina_Bool | eina_value_list_setup (Eina_Value *value, const Eina_Value_Type *subtype) |
Initializes generic value storage of type list. | |
static unsigned int | eina_value_list_count (const Eina_Value *value) |
Queries number of elements in value of list type. | |
static Eina_Bool | eina_value_list_remove (Eina_Value *value, unsigned int position) |
Removes element at given position in value of list type. | |
static Eina_Bool | eina_value_list_set (Eina_Value *value, unsigned int position,...) |
Sets the generic value in a list member. | |
static Eina_Bool | eina_value_list_get (const Eina_Value *value, unsigned int position,...) |
Gets the generic value from a list member. | |
static Eina_Bool | eina_value_list_insert (Eina_Value *value, unsigned int position,...) |
Inserts the generic value in a list member position. | |
static Eina_Bool | eina_value_list_append (Eina_Value *value,...) |
Appends the generic value in a list. | |
static Eina_Bool | eina_value_list_vset (Eina_Value *value, unsigned int position, va_list args) |
Sets the generic value in a list member. | |
static Eina_Bool | eina_value_list_vget (const Eina_Value *value, unsigned int position, va_list args) |
Gets the generic value from a list member. | |
static Eina_Bool | eina_value_list_vinsert (Eina_Value *value, unsigned int position, va_list args) |
Inserts the generic value in a list member position. | |
static Eina_Bool | eina_value_list_vappend (Eina_Value *value, va_list args) |
Appends the generic value in a list. | |
static Eina_Bool | eina_value_list_pset (Eina_Value *value, unsigned int position, const void *ptr) |
Sets the generic value in a list member from pointer. | |
static Eina_Bool | eina_value_list_pget (const Eina_Value *value, unsigned int position, void *ptr) |
Gets the generic value to pointer from a list member. | |
static Eina_Bool | eina_value_list_pinsert (Eina_Value *value, unsigned int position, const void *ptr) |
Inserts the generic value in a list member position from pointer. | |
static Eina_Bool | eina_value_list_pappend (Eina_Value *value, const void *ptr) |
Appends the generic value in a list from pointer. | |
Typedefs | |
typedef struct _Eina_Value_List | Eina_Value_List |
static Eina_Bool eina_value_list_append | ( | Eina_Value * | value, |
... | |||
) | [static] |
Appends the generic value in a list.
[in,out] | value | Source value object |
[in] | ... | Variable arguments |
The variable argument is dependent on chosen subtype. The list for basic types:
Eina_Value *value = eina_value_list_new(EINA_VALUE_TYPE_INT); int x; eina_value_list_append(value, 1234); eina_value_list_get(value, 0, &x); eina_value_free(value);
static unsigned int eina_value_list_count | ( | const Eina_Value * | value | ) | [static] |
Queries number of elements in value of list type.
[in] | value object. |
static Eina_Bool eina_value_list_get | ( | const Eina_Value * | value, |
unsigned int | position, | ||
... | |||
) | [static] |
Gets the generic value from a list member.
[in] | value | Source value object |
[in] | position | Index of the member |
The value is returned in the variable argument parameter, the actual value is type-dependent, but usually it will be what is stored inside the object. There shouldn't be any memory allocation, thus the contents should not be freed.
The variable argument is dependent on chosen subtype. The list for basic types:
Eina_Value *value = eina_value_list_new(EINA_VALUE_TYPE_INT); int x; eina_value_list_append(value, 1234); eina_value_list_get(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_list_insert | ( | Eina_Value * | value, |
unsigned int | position, | ||
... | |||
) | [static] |
Inserts the generic value in a list member position.
[in,out] | value | Source value object |
[in] | position | Index of the member |
The variable argument is dependent on chosen subtype. The list for basic types:
Eina_Value *value = eina_value_list_new(EINA_VALUE_TYPE_INT); int x; eina_value_list_insert(value, 0, 1234); eina_value_list_get(value, 0, &x); eina_value_free(value);
Eina_Value* eina_value_list_new | ( | const Eina_Value_Type * | subtype | ) |
Creates generic value storage of type list.
[in] | subtype | How to manage this list members. |
NULL
on failure.Create a new generic value storage of type list. The members are managed using the description specified by subtype.
On failure, NULL
is returned.
static Eina_Bool eina_value_list_pappend | ( | Eina_Value * | value, |
const void * | ptr | ||
) | [static] |
Appends the generic value in a list from pointer.
[in,out] | value | Source value object |
[in] | ptr | Pointer to specify the contents. |
The pointer type is dependent on chosen value type. The list for basic types:
Eina_Value *value = eina_value_list_new(EINA_VALUE_TYPE_INT); int x = 1234; eina_value_list_pappend(value, &x); eina_value_list_pget(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_list_pget | ( | const Eina_Value * | value, |
unsigned int | position, | ||
void * | ptr | ||
) | [static] |
Gets the generic value to pointer from a list member.
[in] | value | Source value object |
[in] | position | Index of the member |
[out] | ptr | Pointer to receive the contents. |
The value is returned in pointer contents, the actual value is type-dependent, but usually it will be what is stored inside the object. There shouldn't be any memory allocation, thus the contents should not be freed.
The pointer type is dependent on chosen value type. The list for basic types:
Eina_Value *value = eina_value_list_new(EINA_VALUE_TYPE_INT); int x; eina_value_list_append(value, 1234); eina_value_list_pget(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_list_pinsert | ( | Eina_Value * | value, |
unsigned int | position, | ||
const void * | ptr | ||
) | [static] |
Inserts the generic value in a list member position from pointer.
[in,out] | value | Source value object |
[in] | position | Index of the member |
[in] | ptr | Pointer to specify the contents. |
The pointer type is dependent on chosen value type. The list for basic types:
Eina_Value *value = eina_value_list_new(EINA_VALUE_TYPE_INT); int x = 1234; eina_value_list_pinsert(value, 0, &x); eina_value_list_pget(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_list_pset | ( | Eina_Value * | value, |
unsigned int | position, | ||
const void * | ptr | ||
) | [static] |
Sets the generic value in a list member from pointer.
[in,out] | value | Source value object |
[in] | position | Index of the member |
[in] | ptr | Pointer to specify the contents. |
The pointer type is dependent on chosen value type. The list for basic types:
Eina_Value *value = eina_value_list_new(EINA_VALUE_TYPE_INT); int x = 1234; eina_value_list_append(value, 1234); eina_value_list_pset(value, 0, &x); eina_value_list_pget(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_list_remove | ( | Eina_Value * | value, |
unsigned int | position | ||
) | [static] |
Removes element at given position in value of list type.
[in,out] | value | value object. |
[in] | position | index of the member |
static Eina_Bool eina_value_list_set | ( | Eina_Value * | value, |
unsigned int | position, | ||
... | |||
) | [static] |
Sets the generic value in a list member.
[in,out] | value | Source value object |
[in] | position | Index of the member |
The variable argument is dependent on chosen subtype. The list for basic types:
Eina_Value *value = eina_value_list_new(EINA_VALUE_TYPE_INT); int x; eina_value_list_append(value, 1234); eina_value_list_set(value, 0, 5678); eina_value_list_get(value, 0, &x); eina_value_free(value);
static Eina_Bool eina_value_list_setup | ( | Eina_Value * | value, |
const Eina_Value_Type * | subtype | ||
) | [static] |
Initializes generic value storage of type list.
[out] | value | Value object |
[in] | subtype | How to manage this list members. |
Initializes new generic value storage of type list with the given subtype.
This is the same as calling eina_value_set() with EINA_VALUE_TYPE_LIST followed by eina_value_pset() with the Eina_Value_List description configured.
On failure, EINA_FALSE is returned.
static Eina_Bool eina_value_list_vappend | ( | Eina_Value * | value, |
va_list | args | ||
) | [static] |
Appends the generic value in a list.
[in,out] | value | Source value object |
[in] | args | Variable argument |
static Eina_Bool eina_value_list_vget | ( | const Eina_Value * | value, |
unsigned int | position, | ||
va_list | args | ||
) | [static] |
Gets the generic value from a list member.
[in] | value | Source value object |
[in] | position | Index of the member |
[in] | args | Variable argument |
The value is returned in the variable argument parameter, the actual value is type-dependent, but usually it will be what is stored inside the object. There shouldn't be any memory allocation, thus the contents should not be freed.
static Eina_Bool eina_value_list_vinsert | ( | Eina_Value * | value, |
unsigned int | position, | ||
va_list | args | ||
) | [static] |
Inserts the generic value in a list member position.
[in,out] | value | Source value object |
[in] | position | Index of the member |
[in] | args | Variable argument |
static Eina_Bool eina_value_list_vset | ( | Eina_Value * | value, |
unsigned int | position, | ||
va_list | args | ||
) | [static] |
Sets the generic value in a list member.
[in,out] | value | Source value object |
[in] | position | Index of the member |
[in] | args | Variable argument |