mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Plugin and API init/exit for conformance
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
08e46782e5
commit
0710fdd2a3
4 files changed
+24
-6
No files matched your search
@@ -298,7 +298,7 @@ static void check_plugin_depends(plugin_t *plugin)
|
||||
}
|
||||
#endif /* ENABLE_STATIC */
|
||||
|
||||
int plugin_load_all(uev_ctx_t *ctx, char *path)
|
||||
int plugin_init(uev_ctx_t *ctx, char *path)
|
||||
{
|
||||
int fail = 0;
|
||||
#ifndef ENABLE_STATIC
|
||||
@@ -343,6 +343,14 @@ exit:
|
||||
return fail;
|
||||
}
|
||||
|
||||
void plugin_exit(void)
|
||||
{
|
||||
plugin_t *p, *tmp;
|
||||
|
||||
PLUGIN_ITERATOR(p, tmp)
|
||||
plugin_unregister(p);
|
||||
}
|
||||
|
||||
/**
|
||||
* Local Variables:
|
||||
* indent-tabs-mode: t
|
||||
|
||||
Reference in new issue
Block a user