X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Flocal-def.h;h=843805f871069e13fd0b090c53e2bb265a3ebbf9;hb=97cfff753ccb7e5739ebe53e43a5af29dc0f6577;hp=9c58441767c9bb982dabc8e65b4e88679814dd86;hpb=5d293eac235f2d59eccc9b23de803821b821c12e;p=src%2Fapp-framework-binder.git diff --git a/include/local-def.h b/include/local-def.h index 9c584417..843805f8 100644 --- a/include/local-def.h +++ b/include/local-def.h @@ -97,7 +97,7 @@ extern char *ERROR_LABEL[]; typedef json_object* (*AFB_apiCB)(); -typedef void (*AFB_freeCtxCB)(void*, char*); +typedef void (*AFB_freeCtxCB)(void*, void*, char*); // Error code are requested through function to manage json usage count typedef struct { @@ -237,7 +237,7 @@ typedef struct { typedef struct { const char *uuid; const char *url; - char *plugin; + char *prefix; // plugin convivial name char *api; AFB_PostRequest *post; json_object *jresp; @@ -247,6 +247,7 @@ typedef struct { sigjmp_buf checkPluginCall; // context save for timeout set/longjmp AFB_config *config; // plugin may need access to config struct MHD_Connection *connection; + AFB_plugin *plugin; // provide callback and easy access to plugin AFB_plugin **plugins; } AFB_request;