Magic
[Tools]
These functions provide magic checks management for projects. More...
Functions | |
EAPI int | eina_magic_string_init (void) |
Initialize the magic module. | |
EAPI int | eina_magic_string_shutdown (void) |
Shut down the magic module. |
Detailed Description
These functions provide magic checks management for projects.
Function Documentation
EAPI int eina_magic_string_init | ( | void | ) |
Initialize the magic module.
- Returns:
- 1 or greater.
This function just increases a reference counter. If the magic module is disabled at configure time, then it always returns 1
.
Once the magic module is not used anymore, then eina_magic_shutdown() must be called to shut down the magic module.
- See also:
- eina_init()
Referenced by eina_array_init(), eina_init(), eina_list_init(), and eina_stringshare_init().
EAPI int eina_magic_string_shutdown | ( | void | ) |
Shut down the magic module.
- Returns:
- 0 when the magic module is completely shut down, 1 or greater otherwise.
This function shuts down the magic module set up by eina_magic_string_init(). It is called by eina_shutdown() and by all modules shutdown functions. It returns 0 when it is called the same number of times than eina_magic_string_init(). In that case it clears the magic list and return 0
. If the magic module is disabled at configure time, then it always returns 0
.
- See also:
- eina_shutdown()
References eina_inlist_remove().
Referenced by eina_array_shutdown(), eina_init(), eina_list_init(), eina_list_shutdown(), eina_shutdown(), and eina_stringshare_shutdown().