From 98f5843474dcec55827279b6f42007341c171ae0 Mon Sep 17 00:00:00 2001 From: Manuel Bachmann Date: Mon, 21 Dec 2015 06:57:05 +0100 Subject: Switch to a plugin model Each API now compiles to a ".so" file, which gets searched for in the "${libdir}/afb" directory at startup. We can now load an arbitrary number of plugins (> 10). Signed-off-by: Manuel Bachmann --- plugins/session/token-api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/session/token-api.c') diff --git a/plugins/session/token-api.c b/plugins/session/token-api.c index b6ebb8ad..ba6d2761 100644 --- a/plugins/session/token-api.c +++ b/plugins/session/token-api.c @@ -94,7 +94,7 @@ STATIC AFB_restapi pluginApis[]= { {NULL} }; -PUBLIC AFB_plugin *tokenRegister () { +PUBLIC AFB_plugin *pluginRegister () { AFB_plugin *plugin = malloc (sizeof (AFB_plugin)); plugin->type = AFB_PLUGIN_JSON; plugin->info = "Application Framework Binder Service"; @@ -104,4 +104,4 @@ PUBLIC AFB_plugin *tokenRegister () { plugin->freeCtxCB= (void*) clientContextFree; return (plugin); -}; \ No newline at end of file +}; -- cgit 1.2.3-korg