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 | |
EAPI int | eina_init (void) |
Initialize the Eina library. | |
EAPI int | eina_shutdown (void) |
Shut down the Eina library. | |
EAPI int | eina_threads_init (void) |
Initialize the mutexes of the Eina library. | |
EAPI int | eina_threads_shutdown (void) |
Shut down mutexes in the Eina library. | |
Variables | |
EAPI Eina_Version * | eina_version |
Eina version (defined at configuration time). | |
EAPI Eina_Version * | eina_version = &_version |
Eina version (defined at configuration time). |
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.
When Eina is not used anymore, call eina_shutdown() to shut down the Eina library.
EAPI int eina_shutdown | ( | void | ) |
Shut down the Eina library.
- Returns:
- 0 when all the modules is completely shut down, 1 or greater otherwise.
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.
EAPI int eina_threads_init | ( | void | ) |
Initialize the mutexes of the Eina library.
- Returns:
- 1 or greater on success, 0 on error.
When the mutexes are not used anymore, call eina_threads_shutdown() to shut down the mutexes.
EAPI 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.
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.