Call [process|thread] [init|finish] functions of modules

The process initialization function was also renamed from init to
process_init.
This commit is contained in:
Johan Wikman
2017-01-05 16:17:50 +02:00
parent a2a38f952a
commit 03391748ee
2 changed files with 168 additions and 11 deletions

View File

@ -120,13 +120,13 @@ typedef struct mxs_module
*
* @return 0 on success, non-zero on failure.
*/
int (*init)();
int (*process_init)();
/**
* If non-NULL, this function is called once at process shutdown, provided
* the call to @c init succeeded.
*/
void (*finish)();
void (*process_finish)();
/**
* If non-NULL, this function is called once at the startup of every new thread.