X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Fsession%2Ftoken-api.c;h=04945a8099fd0dd0a9e7dc625049bb4cdea6fa05;hb=11d36a9f7e16aa9992835f8ce06f0e1e5297b131;hp=65c18d26fc1edeaedd989d69621f5695eea848b8;hpb=b8d4c81cc8175ce49c77d41e572a9f1a2e367cdc;p=src%2Fapp-framework-binder.git diff --git a/plugins/session/token-api.c b/plugins/session/token-api.c index 65c18d26..04945a80 100644 --- a/plugins/session/token-api.c +++ b/plugins/session/token-api.c @@ -36,7 +36,7 @@ static void clientContextCreate (struct afb_req request) json_object *jresp; // add an application specific client context to session - *request.context = malloc (sizeof (MyClientApplicationHandle)); + request.context = malloc (sizeof (MyClientApplicationHandle)); // Send response to UI jresp = json_object_new_object(); @@ -118,7 +118,7 @@ static const struct AFB_plugin plugin_desc = { .freeCtxCB = clientContextFree }; -const struct AFB_plugin *pluginRegister () +const struct AFB_plugin *pluginRegister (const struct AFB_interface *itf) { return &plugin_desc; }