|
Libecoli 0.11.1
Extensible COmmand LIne library
|
Library initialization and cleanup functions. More...
Data Structures | |
| struct | ec_init |
Macros | |
| #define | EC_INIT_REGISTER(t) |
Typedefs | |
| typedef int | ec_init_t(void) |
| typedef void | ec_exit_t(void) |
Functions | |
| void | ec_init_register (struct ec_init *test) |
| int | ec_init (void) |
| void | ec_exit (void) |
Library initialization and cleanup functions.
| #define EC_INIT_REGISTER | ( | t | ) |
Register initialization and exit callbacks. These callbacks are ordered by priority: for initialization, the lowest priority is called first. For exit, the callbacks are invoked in reverse order.
Priority policy: 0 .. 99 : reserved for libecoli internal use. 100 .. : available for user code (recommended).
Do not use priorities < 100 for application code; internal libecoli components may depend on those priorities and using them can lead to uninitialized state, crashes, or undefined behavior.
| typedef int ec_init_t(void) |
| void ec_init_register | ( | struct ec_init * | test | ) |
Register an initialization function.
| test | A pointer to an ec_init structure to be registered. |
| int ec_init | ( | void | ) |
Initialize ecoli library.
Must be called before any other function from libecoli.
| void ec_exit | ( | void | ) |
Uninitialize ecoli library.