X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdbus-api.c;fp=src%2Fdbus-api.c;h=9d34e436d0025875054f1fdb8c722b7119e2c3e8;hb=c2bda43c447016a20ed061078b0dff3e64d09940;hp=febe87d9817c7064d4a3d499128d49e23bc06a32;hpb=cd054544444e92e7695dd288f0c04b7af0f668e3;p=src%2Fapp-framework-binder.git diff --git a/src/dbus-api.c b/src/dbus-api.c index febe87d9..9d34e436 100644 --- a/src/dbus-api.c +++ b/src/dbus-api.c @@ -19,7 +19,7 @@ #include "local-def.h" -STATIC json_object* pingAfbs (AFB_plugin *plugin, AFB_session *session, struct MHD_Connection *connection, AFB_request *request) { +STATIC json_object* pingAfbs (AFB_plugin *plugin, AFB_session *session, AFB_request *request) { static pingcount=0; json_object *response; response = jsonNewMessage(AFB_SUCCESS, "Ping Application Framework %d", pingcount++); @@ -29,20 +29,15 @@ STATIC json_object* pingAfbs (AFB_plugin *plugin, AFB_session *session, struct M STATIC AFB_restapi pluginApis[]= { - {"/ping" , (AFB_apiCB)pingSample ,"Ping Service"}, - {"/get-all" , (AFB_apiCB)pingAfbs ,"Ping Application Framework"}, - {"/get-one" , (AFB_apiCB)pingSample ,"Verbose Mode"}, - {"/start-one", (AFB_apiCB)pingSample ,"Verbose Mode"}, - {"/stop-one" , (AFB_apiCB)pingSample ,"Verbose Mode"}, - {"/probe-one", (AFB_apiCB)pingSample ,"Verbose Mode"}, - {"/ctx-store", (AFB_apiCB)pingSample ,"Verbose Mode"}, - {"/ctx-load" , (AFB_apiCB)pingSample ,"Verbose Mode"}, + {"ping" , (AFB_apiCB)pingAfbs ,"Ping Application Framework"}, + {"ctx-store", (AFB_apiCB)pingSample ,"Verbose Mode"}, + {"ctx-load" , (AFB_apiCB)pingSample ,"Verbose Mode"}, {0,0,0} }; PUBLIC AFB_plugin *dbusRegister (AFB_session *session) { AFB_plugin *plugin = malloc (sizeof (AFB_plugin)); - + plugin->type = AFB_PLUGIN; plugin->info = "Application Framework Binder Service"; plugin->prefix= "dbus"; plugin->apis = pluginApis;