X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdbus-api.c;fp=src%2Fdbus-api.c;h=70de03f022278ad3916a45deaf4646980ac1caa4;hb=4e43e3b53482bff8cb835271eb3207aeaf593812;hp=f7b071bd16484c1ab98998f67d77ab270267d124;hpb=1250a56369315c017abfe429c556b863730b9b44;p=src%2Fapp-framework-binder.git diff --git a/src/dbus-api.c b/src/dbus-api.c index f7b071bd..70de03f0 100644 --- a/src/dbus-api.c +++ b/src/dbus-api.c @@ -30,7 +30,7 @@ STATIC json_object* pingSample (AFB_request *request) { if (len == 0) strcpy (query,"NoSearchQueryList"); // check if we have some post data - if (request->post == NULL) request->post="NoData"; + if (request->post == NULL) request->post->data="NoData"; // return response to caller response = jsonNewMessage(AFB_SUCCESS, "Ping Binder Daemon %d query={%s} PostData: \'%s\' ", pingcount++, query, request->post); @@ -75,12 +75,12 @@ STATIC json_object* pingJson (AFB_session *session, AFB_request *request) { STATIC AFB_restapi pluginApis[]= { - {"ping" , (AFB_apiCB)pingSample , "Ping Application Framework"}, - {"pingnull" , (AFB_apiCB)pingFail , "Return NULL"}, - {"pingbug" , (AFB_apiCB)pingBug , "Do a Memory Violation"}, - {"pingJson" , (AFB_apiCB)pingJson , "Return a JSON object"}, - {"ctx-store", (AFB_apiCB)pingSample , "Verbose Mode"}, - {"ctx-load" , (AFB_apiCB)pingSample , "Verbose Mode"}, + {"ping" , AFB_SESSION_NONE, (AFB_apiCB)pingSample , "Ping Application Framework"}, + {"pingnull" , AFB_SESSION_NONE, (AFB_apiCB)pingFail , "Return NULL"}, + {"pingbug" , AFB_SESSION_NONE, (AFB_apiCB)pingBug , "Do a Memory Violation"}, + {"pingJson" , AFB_SESSION_NONE, (AFB_apiCB)pingJson , "Return a JSON object"}, + {"ctx-store", AFB_SESSION_NONE, (AFB_apiCB)pingSample , "Verbose Mode"}, + {"ctx-load" , AFB_SESSION_NONE, (AFB_apiCB)pingSample , "Verbose Mode"}, {NULL} };