X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fproto-def.h;h=315cecfafcb00429c08e64ce7f2e0ced3c77a667;hb=6f22e88cd3e6d502efa7100ad2b129641305fb53;hp=cc372bf7789962a17f81ca01fbed4a3bb9b0ca76;hpb=446e0a75684131f2f2fec251775db9ee450003ec;p=src%2Fapp-framework-binder.git diff --git a/include/proto-def.h b/include/proto-def.h index cc372bf7..315cecfa 100644 --- a/include/proto-def.h +++ b/include/proto-def.h @@ -22,22 +22,23 @@ // Rest-api -PUBLIC json_object* apiPingTest(AFB_session *session, AFB_request *request, void* handle); +PUBLIC json_object* apiPingTest(AFB_request *request); PUBLIC const char* getQueryValue (AFB_request * request, char *name); PUBLIC int getQueryAll(AFB_request * request, char *query, size_t len); - +PUBLIC void endPostRequest(AFB_PostHandle *posthandle); PUBLIC int doRestApi(struct MHD_Connection *connection, AFB_session *session, const char* url, const char *method , const char *upload_data, size_t *upload_data_size, void **con_cls); +PUBLIC AFB_PostHandle* getPostHandle (AFB_request *request); void initPlugins (AFB_session *session); -typedef AFB_plugin* (*AFB_pluginCB)(AFB_session *session); -PUBLIC AFB_plugin* afsvRegister (AFB_session *session); -PUBLIC AFB_plugin* dbusRegister (AFB_session *session); -PUBLIC AFB_plugin* alsaRegister (AFB_session *session); - - +typedef AFB_plugin* (*AFB_pluginCB)(); +PUBLIC AFB_plugin* tokenRegister (); +PUBLIC AFB_plugin* audioRegister (); +PUBLIC AFB_plugin* helloWorldRegister (); +PUBLIC AFB_plugin* radioRegister (); +PUBLIC AFB_plugin* samplePostRegister (); // Session handling PUBLIC AFB_error sessionCheckdir (AFB_session *session); @@ -45,6 +46,14 @@ PUBLIC json_object *sessionList (AFB_session *session, AFB_request *request PUBLIC json_object *sessionToDisk (AFB_session *session, AFB_request *request, char *name,json_object *jsonSession); PUBLIC json_object *sessionFromDisk (AFB_session *session, AFB_request *request, char *name); +PUBLIC AFB_error ctxTokenRefresh (AFB_request *request); +PUBLIC AFB_error ctxTokenCreate (AFB_request *request); +PUBLIC AFB_error ctxTokenCheck (AFB_request *request); +PUBLIC AFB_error ctxTokenReset (AFB_request *request); +PUBLIC AFB_error ctxClientGet (AFB_request *request, AFB_plugin *plugin); +PUBLIC void ctxStoreInit (int); + + // Httpd server PUBLIC AFB_error httpdStart (AFB_session *session);