Tizen Native API  7.0
Low-level Serialization Structures.

Functions that create, destroy and manipulate serialization nodes used by Eet Data Serialization.

Functions

Eet_Nodeeet_node_char_new (const char *name, char c)
 Creates a new character node.
Eet_Nodeeet_node_short_new (const char *name, short s)
 Creates a new short node.
Eet_Nodeeet_node_int_new (const char *name, int i)
 Creates a new integer node.
Eet_Nodeeet_node_long_long_new (const char *name, long long l)
 Creates a new long long integer node.
Eet_Nodeeet_node_float_new (const char *name, float f)
 Creates a new float node.
Eet_Nodeeet_node_double_new (const char *name, double d)
 Creates a new double node.
Eet_Nodeeet_node_unsigned_char_new (const char *name, unsigned char uc)
 Creates a new unsigned character node.
Eet_Nodeeet_node_unsigned_short_new (const char *name, unsigned short us)
 Creates a new unsigned short node.
Eet_Nodeeet_node_unsigned_int_new (const char *name, unsigned int ui)
 Creates a new unsigned integer node.
Eet_Nodeeet_node_unsigned_long_long_new (const char *name, unsigned long long l)
 Creates a new unsigned long long integer node.
Eet_Nodeeet_node_string_new (const char *name, const char *str)
 Creates a new string node.
Eet_Nodeeet_node_inlined_string_new (const char *name, const char *str)
 Creates a new inlined string node.
Eet_Nodeeet_node_null_new (const char *name)
 Creates a new empty node.
Eet_Nodeeet_node_list_new (const char *name, Eina_List *nodes)
 Creates a new list node.
Eet_Nodeeet_node_array_new (const char *name, int count, Eina_List *nodes)
 Creates a new array node.
Eet_Nodeeet_node_var_array_new (const char *name, Eina_List *nodes)
 Creates a new variable array node.
Eet_Nodeeet_node_hash_new (const char *name, const char *key, Eet_Node *node)
 Creates a new hash node.
Eet_Nodeeet_node_struct_new (const char *name, Eina_List *nodes)
 Creates a new struct node.
Eet_Nodeeet_node_struct_child_new (const char *parent, Eet_Node *child)
 Creates a new struct child node.
Eet_Nodeeet_node_children_get (Eet_Node *node)
 Gets a node's child nodes.
Eet_Nodeeet_node_next_get (Eet_Node *node)
 Gets the next node in a list of nodes.
Eet_Nodeeet_node_parent_get (Eet_Node *node)
 Gets the parent node of a node.
void eet_node_list_append (Eet_Node *parent, const char *name, Eet_Node *child)
 Appends a "list" node TODO FIX ME.
void eet_node_struct_append (Eet_Node *parent, const char *name, Eet_Node *child)
 Appends a struct node.
void eet_node_hash_add (Eet_Node *parent, const char *name, const char *key, Eet_Node *child)
 Adds a hash node.
void eet_node_dump (Eet_Node *n, int dumplevel, Eet_Dump_Callback dumpfunc, void *dumpdata)
 Dumps a node from an eet encoded data structure into ascii text.
int eet_node_type_get (Eet_Node *node)
 Returns the type of a node.
Eet_Node_Dataeet_node_value_get (Eet_Node *node)
 Returns the node's data.
void eet_node_del (Eet_Node *n)
 Deletes the given node.
void * eet_data_node_encode_cipher (Eet_Node *node, const char *cipher_key, int *size_ret)
 Encodes node data using a cipher.
Eet_Nodeeet_data_node_decode_cipher (const void *data_in, const char *cipher_key, int size_in)
 Decodes node data using a cipher.
Eet_Nodeeet_data_node_read_cipher (Eet_File *ef, const char *name, const char *cipher_key)
 Reads a node data from an eet file and decodes it using a cipher.
int eet_data_node_write_cipher (Eet_File *ef, const char *name, const char *cipher_key, Eet_Node *node, int compress)
 Writes node data to the named key in an eet file using a cipher.
void * eet_node_walk (void *parent, const char *name, Eet_Node *root, Eet_Node_Walk *cb, void *user_data)

Typedefs

typedef struct _Eet_Node Eet_Node
typedef struct _Eet_Node_Data Eet_Node_Data

Typedef Documentation

Opaque handle to manage serialization node.

Contains an union that can fit any kind of node.


Function Documentation

Eet_Node* eet_data_node_decode_cipher ( const void *  data_in,
const char *  cipher_key,
int  size_in 
)

Decodes node data using a cipher.

TODO FIX ME

Parameters:
data_inThe pointer to the data to decode into a struct.
cipher_keyThe key to use as cipher.
size_inThe size of the data pointed to in bytes.
Returns:
The decoded node.
Since :
3.0
void* eet_data_node_encode_cipher ( Eet_Node node,
const char *  cipher_key,
int *  size_ret 
)

Encodes node data using a cipher.

TODO FIX ME

Parameters:
nodeThe node.
cipher_keyThe key to use as cipher.
size_retNumber of bytes read from entry and returned.
Since :
3.0
Eet_Node* eet_data_node_read_cipher ( Eet_File ef,
const char *  name,
const char *  cipher_key 
)

Reads a node data from an eet file and decodes it using a cipher.

TODO FIX ME

Parameters:
efThe eet file handle to read from.
nameThe key the data is stored under in the eet file.
cipher_keyThe key to use as cipher.
Returns:
A node to the decoded data structure.
Since :
3.0
int eet_data_node_write_cipher ( Eet_File ef,
const char *  name,
const char *  cipher_key,
Eet_Node node,
int  compress 
)

Writes node data to the named key in an eet file using a cipher.

TODO FIX ME

Parameters:
efThe eet file handle to write to.
nameThe key to store the data under in the eet file.
cipher_keyThe key to use as cipher.
nodeThe node.
compressCompression flags for storage.
Returns:
bytes written on successful write, 0 on failure.
Since :
3.0
Eet_Node* eet_node_array_new ( const char *  name,
int  count,
Eina_List nodes 
)

Creates a new array node.

Parameters:
nameName of the node.
countNumber of nodes
nodesList of nodes.
Returns:
A new array node.
Since :
3.0
Eet_Node* eet_node_char_new ( const char *  name,
char  c 
)

Creates a new character node.

Parameters:
nameName of the node.
cCharacter value.
Returns:
A new character node.
Since :
3.0

Gets a node's child nodes.

Parameters:
nodeThe node
Returns:
The first child node which contains a pointer to the next child node and the parent.
Since (EFL) :
1.5
Since :
3.0
void eet_node_del ( Eet_Node n)

Deletes the given node.

TODO FIX ME

Parameters:
nThe node.
Since :
3.0
Eet_Node* eet_node_double_new ( const char *  name,
double  d 
)

Creates a new double node.

Parameters:
nameName of the node.
dDouble value.
Returns:
A new double node.
Since :
3.0
void eet_node_dump ( Eet_Node n,
int  dumplevel,
Eet_Dump_Callback  dumpfunc,
void *  dumpdata 
)

Dumps a node from an eet encoded data structure into ascii text.

TODO FIX ME

Parameters:
nThe node.
dumplevelThe dump level.
dumpfuncdumpfunc The function to call passed a string when new data is converted to text.
dumpdataThe data to pass to the dumpfunc callback.
Since :
3.0
Eet_Node* eet_node_float_new ( const char *  name,
float  f 
)

Creates a new float node.

Parameters:
nameName of the node.
fFloat value.
Returns:
A new float node.
Since :
3.0
void eet_node_hash_add ( Eet_Node parent,
const char *  name,
const char *  key,
Eet_Node child 
)

Adds a hash node.

TODO FIX ME

Parameters:
parentThe parent node.
nameName of the node.
keyKey of the node.
childThe child node.
Since :
3.0
Eet_Node* eet_node_hash_new ( const char *  name,
const char *  key,
Eet_Node node 
)

Creates a new hash node.

TODO FIX ME

Parameters:
nameName of the node.
keyKey of the node.
nodeThe node.
Returns:
A new hash node.
Since :
3.0
Eet_Node* eet_node_inlined_string_new ( const char *  name,
const char *  str 
)

Creates a new inlined string node.

Parameters:
nameName of the node.
strString value.
Returns:
A new inlined string node.
Since :
3.0
Eet_Node* eet_node_int_new ( const char *  name,
int  i 
)

Creates a new integer node.

Parameters:
nameName of the node.
iInteger value.
Returns:
A new integer node.
Since :
3.0
void eet_node_list_append ( Eet_Node parent,
const char *  name,
Eet_Node child 
)

Appends a "list" node TODO FIX ME.

Parameters:
parentThe parent node.
nameThe name of new node.
childThe child node.
Since :
3.0
Eet_Node* eet_node_list_new ( const char *  name,
Eina_List nodes 
)

Creates a new list node.

Parameters:
nameName of the node.
nodesList of nodes.
Returns:
A new list node.
Since :
3.0
Eet_Node* eet_node_long_long_new ( const char *  name,
long long  l 
)

Creates a new long long integer node.

Parameters:
nameName of the node.
lLong long integer value.
Returns:
A new long long integer node.
Since :
3.0

Gets the next node in a list of nodes.

Parameters:
nodeThe node
Returns:
A node which contains a pointer to the next child node and the parent.
Since (EFL) :
1.5
Since :
3.0
Eet_Node* eet_node_null_new ( const char *  name)

Creates a new empty node.

Parameters:
nameName of the node.
Returns:
A new empty node.
Since :
3.0

Gets the parent node of a node.

Parameters:
nodeThe node
Returns:
The parent node of node
Since (EFL) :
1.5
Since :
3.0
Eet_Node* eet_node_short_new ( const char *  name,
short  s 
)

Creates a new short node.

Parameters:
nameName of the node.
sShort value.
Returns:
A new short node.
Since :
3.0
Eet_Node* eet_node_string_new ( const char *  name,
const char *  str 
)

Creates a new string node.

Parameters:
nameName of the node.
strString value.
Returns:
A new string node.
Since :
3.0
void eet_node_struct_append ( Eet_Node parent,
const char *  name,
Eet_Node child 
)

Appends a struct node.

TODO FIX ME

Parameters:
parentThe parent node.
nameThe name of new node.
childThe child node.
Since :
3.0
Eet_Node* eet_node_struct_child_new ( const char *  parent,
Eet_Node child 
)

Creates a new struct child node.

TODO FIX ME

Parameters:
parentThe name of parent node.
childThe child node.
Returns:
A new struct child node.
Since :
3.0
Eet_Node* eet_node_struct_new ( const char *  name,
Eina_List nodes 
)

Creates a new struct node.

Parameters:
nameName of the node.
nodesList of nodes.
Returns:
A new struct node.
Since :
3.0
int eet_node_type_get ( Eet_Node node)

Returns the type of a node.

Parameters:
nodeThe node
Returns:
The node's type (EET_T_$TYPE)
Since (EFL) :
1.5
Since :
3.0
Eet_Node* eet_node_unsigned_char_new ( const char *  name,
unsigned char  uc 
)

Creates a new unsigned character node.

Parameters:
nameName of the node.
ucUnsigned char value.
Returns:
A new unsigned char node.
Since :
3.0
Eet_Node* eet_node_unsigned_int_new ( const char *  name,
unsigned int  ui 
)

Creates a new unsigned integer node.

Parameters:
nameName of the node.
uiUnsigned integer value.
Returns:
A new unsigned integer node.
Since :
3.0
Eet_Node* eet_node_unsigned_long_long_new ( const char *  name,
unsigned long long  l 
)

Creates a new unsigned long long integer node.

Parameters:
nameName of the node.
lUnsigned long long integer value.
Returns:
A new unsigned long long integer node.
Since :
3.0
Eet_Node* eet_node_unsigned_short_new ( const char *  name,
unsigned short  us 
)

Creates a new unsigned short node.

Parameters:
nameName of the node.
usUnsigned short value.
Returns:
A new unsigned short node.
Since :
3.0

Returns the node's data.

Parameters:
nodeThe node
Returns:
The data contained in the node
Since (EFL) :
1.5
Since :
3.0
Eet_Node* eet_node_var_array_new ( const char *  name,
Eina_List nodes 
)

Creates a new variable array node.

Parameters:
nameName of the node.
nodesList of nodes.
Returns:
A new variable array node.
Since :
3.0
void* eet_node_walk ( void *  parent,
const char *  name,
Eet_Node root,
Eet_Node_Walk cb,
void *  user_data 
)

Walks trees of Eet_Node

Since :
3.0