X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Flocal-def.h;h=a5d48bfdbcc83533b7013e217e0f243d13e78cea;hb=71f29a4ccfadb0eeed83479e61287252f9804fa7;hp=2f8fd202183e90d5e061d366d5a5041f5b430b88;hpb=1dc25c6396d8dbb6b1505751babaa499d4a68315;p=src%2Fapp-framework-binder.git diff --git a/include/local-def.h b/include/local-def.h index 2f8fd202..a5d48bfd 100644 --- a/include/local-def.h +++ b/include/local-def.h @@ -60,6 +60,7 @@ #define DEFLT_API_TIMEOUT 0 // default Plugin API Timeout #define DEFLT_CACHE_TIMEOUT 100000 // default Static File Chache [Client Side Cache 100000~=1day] #define DEFLT_AUTH_TOKEN NULL // expect for debug should == NULL +#define DEFLT_HTTP_TIMEOUT 15 // Max MibMicroHttp timeout typedef int BOOL; #ifndef FALSE @@ -199,7 +200,8 @@ typedef struct { const char *url; char *plugin; char *api; - char *post; + char *post; // post data in raw format + int len; // post data len json_object *jresp; AFB_clientCtx *client; // needed because libmicrohttp cannot create an empty response int restfull; // request is resfull [uuid token provided]