X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Flocal-def.h;h=f03666a4c488868753a03a2348752c1a7568679d;hb=631b0be76caa4ad4bbbbbfe1ca333dc9aa192ce0;hp=df4ddb238e37200c7852b8cb5c5944995b54f0c5;hpb=fc0da145ff8e9b8cea1c40fa3025596fb8ffaae8;p=src%2Fapp-framework-binder.git diff --git a/include/local-def.h b/include/local-def.h index df4ddb23..f03666a4 100644 --- a/include/local-def.h +++ b/include/local-def.h @@ -83,9 +83,6 @@ typedef enum {AFB_PLUGIN_JSON=123456789, AFB_PLUGIN_JSCRIPT=987654321, AFB_PLU // prebuild json error are constructed in config.c typedef enum { AFB_FALSE, AFB_TRUE, AFB_FATAL, AFB_FAIL, AFB_WARNING, AFB_EMPTY, AFB_SUCCESS, AFB_DONE, AFB_UNAUTH} AFB_error; -extern char *ERROR_LABEL[]; -#define ERROR_LABEL_DEF {"false", "true", "fatal", "fail", "warning", "empty", "success"} - #define BANNER "Application Framework BinderApplication Framework " #define JSON_CONTENT "application/json" #define FORM_CONTENT "multipart/form-data" @@ -96,13 +93,6 @@ extern char *ERROR_LABEL[]; typedef json_object* (*AFB_apiCB)(); typedef void (*AFB_freeCtxCB)(void*, void*, char*); -// Error code are requested through function to manage json usage count -typedef struct { - int level; - char* label; - json_object *json; -} AFB_errorT; - typedef enum {AFB_POST_NONE=0, AFB_POST_JSON, AFB_POST_FORM, AFB_POST_EMPTY} AFB_PostType; typedef enum {AFB_MODE_LOCAL=0, AFB_MODE_REMOTE, AFB_MODE_GLOBAL} AFB_Mode;