summaryrefslogtreecommitdiffstats
path: root/src/helper-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper-api.c')
-rw-r--r--src/helper-api.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/helper-api.c b/src/helper-api.c
index 7684469b..50abcea6 100644
--- a/src/helper-api.c
+++ b/src/helper-api.c
@@ -30,10 +30,20 @@ typedef struct {
size_t len;
} queryHandleT;
+// Error code are requested through function to manage json usage count
+typedef struct {
+ int level;
+ const char* label;
+ json_object *json;
+} AFB_errorT;
+
static AFB_errorT AFBerr [AFB_SUCCESS+1];
static json_object *jTypeStatic;
+
PUBLIC int verbose;
+static const char *ERROR_LABEL[] = {"false", "true", "fatal", "fail", "warning", "empty", "success"};
+
/* ------------------------------------------------------------------------------
* Get localtime and return in a string
* ------------------------------------------------------------------------------ */