diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-29 16:13:14 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-29 16:13:14 +0200 |
commit | 823df95bd73bf7195d9a9d3dacd418475c055bc8 (patch) | |
tree | a739b394f38bb023a853392c2a17a271d2e0ae33 /src/include/eiotas_main.h | |
parent | 82afdb93d790105246acfd5a47185ebd10961ab5 (diff) | |
download | edoors-823df95bd73bf7195d9a9d3dacd418475c055bc8.zip edoors-823df95bd73bf7195d9a9d3dacd418475c055bc8.tar.gz |
documentation
Diffstat (limited to 'src/include/eiotas_main.h')
-rw-r--r-- | src/include/eiotas_main.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/eiotas_main.h b/src/include/eiotas_main.h index d7ef48c..d75ab96 100644 --- a/src/include/eiotas_main.h +++ b/src/include/eiotas_main.h @@ -21,6 +21,10 @@ #include <eina_types.h> +/** + * @typedef Eiotas_Version + * The version of Eiotas. + */ typedef struct _Eiotas_Version { int major; /**< Major component of the version */ @@ -32,8 +36,35 @@ EAPI extern Eiotas_Version *eiotas_version; EAPI extern int _eiotas_log_dom; +/** + * @brief Initialize the Eiotas library. + * + * @return 1 or greater on success, 0 on error. + * + * This function sets up all the eiotas 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. + * + * When Eiotas is not used anymore, call eiotas_shutdown() to shut down + * the Eiotaslibrary. + */ EAPI int eiotas_init(); +/** + * @brief Shut down the Eiotas library. + * + * @return 0 when all the modules are completely shut down, 1 or + * greater otherwise. + * + * This function shuts down the Eiotas library. It returns 0 when it has + * been called the same number of times than eiotas_init(). In that case + * it shut down all the Eiotas modules. + * + * Once this function succeeds (that is, @c 0 is returned), you must + * not call any of the Eiotas function anymore. You must call + * eiotas_init() again to use the Eiotas functions again. + */ EAPI int eiotas_shutdown(); #endif // __EIOTAS_MAIN_H__ |