X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Flocal-def.h;h=22a3608b5b3e37c65ebd8788e1ece2d03170184e;hb=6d575b22b86ebfac5e2b4c9d672f45805a5b63ce;hp=54f5ce0ddac0bce89153e1b6d4f3fd9c36643072;hpb=3bce4a6a8648c91b6ddea478116b3b0679ef4648;p=src%2Fapp-framework-binder.git diff --git a/include/local-def.h b/include/local-def.h index 54f5ce0d..22a3608b 100644 --- a/include/local-def.h +++ b/include/local-def.h @@ -76,6 +76,8 @@ typedef int BOOL; #define STATIC static #define FAILED -1 +#define AUDIO_BUFFER "/tmp/buf" + extern int verbose; // this is the only global variable // Plugin Type @@ -105,6 +107,14 @@ typedef struct { typedef enum {AFB_POST_NONE=0, AFB_POST_JSON, AFB_POST_FORM} AFB_PostType; +// Post Upload File Handle +typedef struct { + int fd; + char *path; + int errcode; + json_object* jresp; +} AFB_PostCtx; + typedef struct { int len; // post element size char *data; // post data in raw format @@ -251,6 +261,7 @@ typedef struct { int fakemod; // respond to GET/POST request without interacting with sndboard int forceexit; // when autoconfig from script force exit before starting server AFB_plugin **plugins; // pointer to REST/API plugins + int pluginCount; // loaded plugins count magic_t magic; // Mime type file magic lib sigjmp_buf restartCkpt; // context save for restart set/longjmp } AFB_session; @@ -259,4 +270,4 @@ typedef struct { #include "proto-def.h" -#endif /* LOCAL_DEF_H */ \ No newline at end of file +#endif /* LOCAL_DEF_H */