* eet: Add API to directly store Eet_Node inside and Eet_File.

SVN revision: 40107
This commit is contained in:
Cedric BAIL 2009-04-16 12:43:34 +00:00
parent 7dd4b42c85
commit bdea85040b
2 changed files with 18 additions and 0 deletions

View File

@ -1378,6 +1378,7 @@ eet_dictionary_string_check * example: values), and @p type is the basic data
EAPI void eet_node_del(Eet_Node *n);
EAPI void *eet_data_node_encode_cipher(Eet_Node *node, const char *key, int *size_ret);
EAPI int eet_data_node_write_cipher(Eet_File *ef, const char *name, const char *key, Eet_Node *node, int compress);
/***************************************************************************/

View File

@ -3260,6 +3260,23 @@ _eet_data_descriptor_encode(Eet_Dictionary *ed,
return cdata;
}
EAPI int
eet_data_node_write_cipher(Eet_File *ef, const char *name, const char *key, Eet_Node *node, int compress)
{
Eet_Dictionary *ed;
void *data_enc;
int size;
int val;
ed = eet_dictionary_get(ef);
data_enc = _eet_data_dump_encode(ed, node, &size);
if (!data_enc) return 0;
val = eet_write_cipher(ef, name, data_enc, size, compress, key);
free(data_enc);
return val;
}
EAPI void *
eet_data_node_encode_cipher(Eet_Node *node,
const char *key,