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 2 |
| 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. | |
| Eina_Bool | eina_main_loop_is (void) |
| Check if you are calling this function from the same thread Eina was initialized or not. | |
| void | eina_main_loop_define (void) |
| You should never use that function excpet if you really really know what your are doing. | |
Variables | |
| Eina_Version * | eina_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.
When Eina is not used anymore, call eina_shutdown() to shut down the Eina library.
References eina_error_msg_static_register(), EINA_LIKELY, eina_log_domain_register(), and EINA_LOG_ERR.
| int eina_shutdown | ( | void | ) |
Shut down the Eina library.
- Returns:
- 0 when all the modules 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 anymore. You must call eina_init() again to use the Eina functions again.
References EINA_UNLIKELY.
| 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.
This function should never be called outside of the main loop.
References EINA_TRUE.
| 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.
This function should never be called outside of the main loop.
References EINA_FALSE, and EINA_INLIST_FOREACH.
| Eina_Bool eina_main_loop_is | ( | void | ) |
Check if you are calling this function from the same thread Eina was initialized or not.
- Returns:
- EINA_TRUE is the calling function is the same thread, EINA_FALSE otherwise.
- Since:
- 1.1.0
References EINA_FALSE, and EINA_TRUE.
| void eina_main_loop_define | ( | void | ) |
You should never use that function excpet if you really really know what your are doing.
- Since:
- 1.1.0
