aboutsummaryrefslogtreecommitdiffstats
path: root/include/local-def.h
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-09 01:27:23 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-09 01:27:23 +0100
commitb55efc33fb8df8b0518570b2584b6da9abb3221b (patch)
treeef09396c903355a7d61d57e029f13af90f3ffa3e /include/local-def.h
parent6458b6eb67426974e9a3b8eed1f5620f0de0efc5 (diff)
Added POST, Plugin API signal protection, refactor HTML5 rewrite
Diffstat (limited to 'include/local-def.h')
-rw-r--r--include/local-def.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/local-def.h b/include/local-def.h
index 3f0a26a0..72c51dea 100644
--- a/include/local-def.h
+++ b/include/local-def.h
@@ -40,6 +40,10 @@
/* other definitions --------------------------------------------------- */
+// Note: because of a bug in libmagic MAGIC_DB NULL should not be used for default
+#define MAGIC_DB "/usr/share/misc/magic.mgc"
+#define OPA_INDEX "index.html"
+
typedef int BOOL;
#ifndef FALSE
#define FALSE 0
@@ -97,8 +101,8 @@ typedef struct {
} AFB_request;
typedef struct {
- char *msg;
- int len;
+ char *msg;
+ size_t len;
} AFB_redirect_msg;
// main config structure
@@ -117,6 +121,7 @@ typedef struct {
char *configfile; // where to store configuration on gateway exit
uid_t setuid;
int cacheTimeout;
+ int apiTimeout;
} AFB_config;
// Command line structure hold cli --command + help text
@@ -134,6 +139,7 @@ typedef struct {
char *name;
AFB_apiCB callback;
char *info;
+ void * handle;
} AFB_restapi;
// Plugin definition