diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-02-09 10:23:41 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-02-09 10:23:41 +0100 |
commit | 0890cefa1108aa409d6e6b3cf2f7517b3a6cc5f9 (patch) | |
tree | 4a3248b10f86f66f09edae2766632cdecbc992f4 /include | |
parent | eaa8c24c7cf95a3cefdae961a0bf935d5a84f61a (diff) |
Adds a new option: mode
The option mode can have 3 values: local, remote, global.
It indicates wether the daemon serves:
- loopback (local)
- external interface (remote)
- both (global)
Change-Id: Ibd6c25da692e607b8e0ce793da11cca88db050a2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include')
-rw-r--r-- | include/local-def.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/local-def.h b/include/local-def.h index f7ddeeb4..bf353e94 100644 --- a/include/local-def.h +++ b/include/local-def.h @@ -108,6 +108,7 @@ typedef struct { } 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; // Post Upload File Handle typedef struct { @@ -184,6 +185,7 @@ typedef struct { int cntxTimeout; // Client Session Context timeout int pluginCount; // loaded plugins count AFB_aliasdir *aliasdir; // alias mapping for icons,apps,... + AFB_Mode mode; // mode of listening } AFB_config; typedef struct { |