Tizen Native API
4.0
|
Public Attributes | |
unsigned int | version |
void *(* | alloc )(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc) |
void(* | free )(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc, void *memory) |
void *(* | copy )(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc, const void *memory) |
int(* | compare )(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc, const void *data1, const void *data2) |
const Eina_Value_Struct_Member *(* | find_member )(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc, const char *name) |
How to manage struct. Any NULL
callback is ignored.
void*(* _Eina_Value_Struct_Operations::alloc)(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc) |
How to allocate struct memory to be managed by the Eina_Value
int(* _Eina_Value_Struct_Operations::compare)(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc, const void *data1, const void *data2) |
How to compare two struct memories
void*(* _Eina_Value_Struct_Operations::copy)(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc, const void *memory) |
How to copy struct memory from an existing Eina_Value, if not provided alloc() will be used, then every member is copied using eina_value_type_copy() with member's type.
const Eina_Value_Struct_Member*(* _Eina_Value_Struct_Operations::find_member)(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc, const char *name) |
How to find description for member. For huge structures consider using binary search, stringshared, hash or gperf. The default function does linear search using strcmp().
void(* _Eina_Value_Struct_Operations::free)(const Eina_Value_Struct_Operations *ops, const Eina_Value_Struct_Desc *desc, void *memory) |
How to release memory managed by the Eina_Value
unsigned int _Eina_Value_Struct_Operations::version |