X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Falsa-api.c;h=9d4f3cb6c39cfa4ee1cf6d75208cb5f137ee406c;hb=4e43e3b53482bff8cb835271eb3207aeaf593812;hp=46b971b33373a5c1aad8abc16dd32e65caac6a18;hpb=1250a56369315c017abfe429c556b863730b9b44;p=src%2Fapp-framework-binder.git diff --git a/src/alsa-api.c b/src/alsa-api.c index 46b971b3..9d4f3cb6 100644 --- a/src/alsa-api.c +++ b/src/alsa-api.c @@ -27,23 +27,6 @@ STATIC json_object* wrongApi (AFB_request *request, void* handle) { impossible=bug/zero; } -STATIC json_object* pingSample (AFB_request *request) { - static pingcount = 0; - json_object *response; - char query [512]; - - // request all query key/value - getQueryAll (request,query, sizeof(query)); - - // check if we have some post data - if (request->post == NULL) request->post="NoData"; - - // return response to caller - response = jsonNewMessage(AFB_SUCCESS, "Ping Binder Daemon %d query={%s} handle=[%s] PostData: \'%s\' " - , pingcount++, query, request->post); - - return (response); -} STATIC struct { @@ -52,10 +35,9 @@ STATIC struct { STATIC AFB_restapi pluginApis[]= { - {"ping" , (AFB_apiCB)pingSample , "Ping Application Framework"}, - {"error" , (AFB_apiCB)wrongApi , "Ping Application Framework"}, - {"ctx-store", (AFB_apiCB)pingSample , "Verbose Mode"}, - {"ctx-load" , (AFB_apiCB)pingSample , "Verbose Mode"}, + {"ping" , AFB_SESSION_NONE, (AFB_apiCB)apiPingTest,"Ping Application Framework"}, + {"error" , AFB_SESSION_NONE, (AFB_apiCB)wrongApi , "Ping Application Framework"}, + {NULL} };