Main
[Core]

These functions provide general initialisation and shut down functions. More...

Data Structures

struct  _Eina_Version

Defines

#define EINA_VERSION_MAJOR   1
 Major version of Eina.
#define EINA_VERSION_MINOR   0
 Minor version of Eina.

Typedefs

typedef struct _Eina_Version Eina_Version
 The version of Eina.

Functions

int eina_init (void)
 Initialize the Eina library.
int eina_shutdown (void)
 Shut down the Eina library.
int eina_threads_init (void)
 Initialize the mutexes of the Eina library.
int eina_threads_shutdown (void)
 Shut down mutexes in the Eina library.

Variables

Eina_Versioneina_version
 Eina version (defined at configuration time).
Eina_Versioneina_version = &_version
 Eina version (defined at configuration time).

Detailed Description

These functions provide general initialisation and shut down functions.


Function Documentation

int eina_init ( void   ) 

Initialize the Eina library.

Returns:
1 or greater on success, 0 on error.

This function sets up all the eina modules. It returns 0 on failure (that is, when one of the module fails to initialize), otherwise it returns the number of times it has already been called.

When Eina is not used anymore, call eina_shutdown() to shut down the Eina library.

int eina_shutdown ( void   ) 

Shut down the Eina library.

Returns:
0 when all the modules is completely shut down, 1 or greater otherwise.

This function shuts down the Eina library. It returns 0 when it has been called the same number of times than eina_init(). In that case it shut down all the Eina modules.

Once this function succeeds (that is, 0 is returned), you must not call any of the Eina function anymore. You must call eina_init() again to use the Eina functions again.

int eina_threads_init ( void   ) 

Initialize the mutexes of the Eina library.

Returns:
1 or greater on success, 0 on error.

This function sets up all the mutexes in all eina modules. It returns 0 on failure (that is, when one of the module fails to initialize), otherwise it returns the number of times it has already been called.

When the mutexes are not used anymore, call eina_threads_shutdown() to shut down the mutexes.

int eina_threads_shutdown ( void   ) 

Shut down mutexes in the Eina library.

Returns:
0 when all mutexes are completely shut down, 1 or greater otherwise.

This function shuts down the mutexes in the Eina library. It returns 0 when it has been called the same number of times than eina_threads_init(). In that case it shut down all the mutexes.

Once this function succeeds (that is, 0 is returned), you must not call any of the Eina function in a thread anymore. You must call eina_threads_init() again to use the Eina functions in a thread again.