Main
[Core]

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

Functions

EAPI int eina_init (void)
 Initialize the Eina library.
EAPI int eina_shutdown (void)
 Shut down the Eina library.

Detailed Description

These functions provide general initialisation and shut down functions.


Function Documentation

EAPI 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. The list of initialisation functions that are called are (in that order):

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

References eina_array_init(), eina_array_shutdown(), eina_benchmark_init(), eina_benchmark_shutdown(), eina_counter_init(), eina_counter_shutdown(), eina_error_init(), EINA_ERROR_PERR, eina_error_shutdown(), eina_hash_init(), eina_hash_shutdown(), eina_list_init(), eina_list_shutdown(), eina_magic_string_init(), eina_magic_string_shutdown(), eina_stringshare_init(), and eina_stringshare_shutdown().

EAPI 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. The list of shut down functions that are called are (in that order):

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.

References eina_array_shutdown(), eina_benchmark_shutdown(), eina_counter_shutdown(), eina_error_shutdown(), eina_hash_shutdown(), eina_list_shutdown(), eina_magic_string_shutdown(), and eina_stringshare_shutdown().