work in progress
[src/app-framework-binder.git] / plugins / session / token-api.c
index 25d0b99..feb269d 100644 (file)
@@ -16,6 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <stdio.h>
 
 #include "local-def.h"
 
@@ -79,7 +80,7 @@ STATIC json_object* clientContextReset (AFB_request *request) {
 }
 // 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();
@@ -91,8 +92,8 @@ STATIC json_object* clientGetPing (AFB_request *request) {
 
 // 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);
 }
 
@@ -111,7 +112,6 @@ PUBLIC AFB_plugin *pluginRegister () {
     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);