* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stdio.h>
#include "local-def.h"
}
// Close and Free context
STATIC json_object* clientGetPing (AFB_request *request) {
- static count=0;
+ static int count=0;
json_object *jresp;
jresp = json_object_new_object();
// This function is call when Client Session Context is removed
// Note: when freeCtxCB==NULL standard free/malloc is called
-STATIC void clientContextFree(void *context, char* uuid) {
- fprintf (stderr,"Plugin[token] Closing Session uuid=[%s]\n", uuid);
+STATIC void clientContextFree(void *context) {
+ fprintf (stderr,"Plugin[token] Closing Session\n");
free (context);
}
plugin->info = "Application Framework Binder Service";
plugin->prefix= "token"; // url base
plugin->apis = pluginApis;
- plugin->handle= (void*) "What ever you want";
plugin->freeCtxCB= (void*) clientContextFree;
return (plugin);