EET_G_UNION3
The file that provides the eet functions.
Part of Eet.h(3).
Usage
Data Structures
struct _Eet_Data_Descriptor_Class
Describes how
to
walk
trees
of
Eet_Node.
Defines
Data type:
char
*.
#define
EET_T_INLINED_STRING
12
Data type:
char
*
(but
compressed
inside
the
resulting
eet).
#define
EET_T_NULL
13
Data type:
(void
*)
(only
use
it
if
you
know
why).
#define
EET_T_F32P32
14
Data type:
fixed
point
32.32.
#define
EET_T_F16P16
15
Data type:
fixed
point
16.16.
#define
EET_T_F8P24
16
Data type:
fixed
point
8.24.
#define
EET_T_LAST
18
Typedefs
typedef struct
_Eet_Version
Eet_Version
This is
the
Eet
version
information
structure
that
can
be
used
at
runtiime
to
detect
which
version
of
eet
is
being
used
and
adapt
appropriately
as
follows
for
example:
typedef
enum
_Eet_Error
Eet_Error
Opaque handle
that
defines
an
Eet
file
(or
memory).
typedef
struct
_Eet_Dictionary
Eet_Dictionary
Describes how
to
walk
trees
of
Eet_Node.
typedef
struct
_Eet_Connection
Eet_Connection
Enumerations
enum _Eet_Error
EET_ERROR_NONE,
EET_ERROR_BAD_OBJECT,
EET_ERROR_EMPTY,
EET_ERROR_NOT_WRITABLE,
EET_ERROR_OUT_OF_MEMORY,
EET_ERROR_WRITE_ERROR,
EET_ERROR_WRITE_ERROR_FILE_TOO_BIG,
EET_ERROR_WRITE_ERROR_IO_ERROR,
EET_ERROR_WRITE_ERROR_OUT_OF_SPACE,
EET_ERROR_WRITE_ERROR_FILE_CLOSED,
EET_ERROR_MMAP_FAILED,
EET_ERROR_X509_ENCODING_FAILED,
EET_ERROR_SIGNATURE_FAILED,
EET_ERROR_INVALID_SIGNATURE,
EET_ERROR_NOT_SIGNED,
EET_ERROR_NOT_IMPLEMENTED,
EET_ERROR_PRNG_NOT_SEEDED,
EET_ERROR_ENCRYPT_FAILED,
EET_ERROR_DECRYPT_FAILED
All the
error
identifiers
known
by
Eet.
enum
_Eet_File_Mode
,
EET_FILE_MODE_READ,
EET_FILE_MODE_WRITE,
EET_FILE_MODE_READ_WRITE
Functions
EAPI int
eet_init
(void)
Delete a
specified
entry
from
an
Eet
file
being
written
or
re-written.
EAPI
char
**
eet_list
(Eet_File
*ef,
const
char
*glob,
int
*count_ret)
Close and
release
all
ressource
used
by
an
Eet_Key.
EAPI
Eet_Error
eet_identity_set
(Eet_File
*ef,
Eet_Key
*key)
Display both
private
and
public
key
of
an
Eet_Key.
EAPI
const
void
*
eet_identity_x509
(Eet_File
*ef,
int
*der_length)
Get the
x509
der
certificate
associated
with
an
Eet_File.
EAPI
const
void
*
eet_identity_signature
(Eet_File
*ef,
int
*signature_length)
Get the
raw
signature
associated
with
an
Eet_File.
EAPI
const
void
*
eet_identity_sha1
(Eet_File
*ef,
int
*sha1_length)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_short_new
(const
char
*name,
short
s)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_int_new
(const
char
*name,
int
i)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_long_long_new
(const
char
*name,
long
long
l)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_float_new
(const
char
*name,
float
f)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_double_new
(const
char
*name,
double
d)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_unsigned_char_new
(const
char
*name,
unsigned
char
uc)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_unsigned_short_new
(const
char
*name,
unsigned
short
us)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_unsigned_int_new
(const
char
*name,
unsigned
int
ui)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_unsigned_long_long_new
(const
char
*name,
unsigned
long
long
l)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_string_new
(const
char
*name,
const
char
*str)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_inlined_string_new
(const
char
*name,
const
char
*str)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_null_new
(const
char
*name)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_list_new
(const
char
*name,
Eina_List
*nodes)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_var_array_new
(const
char
*name,
Eina_List
*nodes)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_hash_new
(const
char
*name,
const
char
*key,
Eet_Node
*node)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_struct_new
(const
char
*name,
Eina_List
*nodes)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_node_struct_child_new
(const
char
*parent,
Eet_Node
*child)
TODO FIX
ME.
EAPI
void
eet_node_list_append
(Eet_Node
*parent,
const
char
*name,
Eet_Node
*child)
TODO FIX
ME.
EAPI
void
eet_node_struct_append
(Eet_Node
*parent,
const
char
*name,
Eet_Node
*child)
TODO FIX
ME.
EAPI
void
eet_node_hash_add
(Eet_Node
*parent,
const
char
*name,
const
char
*key,
Eet_Node
*child)
TODO FIX
ME.
EAPI
void
eet_node_del
(Eet_Node
*n)
TODO FIX
ME.
EAPI
void
*
eet_data_node_encode_cipher
(Eet_Node
*node,
const
char
*cipher_key,
int
*size_ret)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_data_node_decode_cipher
(const
void
*data_in,
const
char
*cipher_key,
int
size_in)
TODO FIX
ME.
EAPI
Eet_Node
*
eet_data_node_read_cipher
(Eet_File
*ef,
const
char
*name,
const
char
*cipher_key)
TODO FIX
ME.
EAPI
int
eet_data_node_write_cipher
(Eet_File
*ef,
const
char
*name,
const
char
*cipher_key,
Eet_Node
*node,
int
compress)
TODO FIX
ME.
EAPI
Eet_Connection
*
eet_connection_new
(Eet_Read_Cb
*eet_read_cb,
Eet_Write_Cb
*eet_write_cb,
const
void
*user_data)
Detailed Description
The file that provides the eet functions.
This header provides the Eet management functions.
Typedef Documentation
Eet_Version
This is the Eet version information structure that can be used at runtiime to detect which version of eet is being used and adapt appropriately as follows for example: .PP
#if defined(EET_VERSION_MAJOR) && (EET_VERSION_MAJOR >= 1) && defined(EET_VERSION_MINOR) && (EET_VERSION_MINOR > 2)
printf('Eet version: %i.%i.%i0,
eet_version->major,
eet_version->minor,
eet_version->micro);
if (eet_version->revision > 0)
{
printf(' Built from SVN revision # %i0, eet_version->revision);
}
#endif
Note the if check can be dropped if your program refuses to compile or work with an Eet version less than 1.3.0.