Tizen(Headed) Native API  6.5
_Eina_Value_Struct_Operations Struct Reference

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)

Detailed Description

How to manage struct. Any NULL callback is ignored.

Since (EFL) :
1.2

Member Data Documentation

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.

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().

How to release memory managed by the Eina_Value