summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-03-23 15:00:15 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-03-23 15:08:38 +0100
commitbcc7f5e4fc170c7feaad561d13e3fb6b4e6dd798 (patch)
tree2b440ea8e626c624216fe01a09461738882dda1a /include
parent631b0be76caa4ad4bbbbbfe1ca333dc9aa192ce0 (diff)
simplification of config
Change-Id: Id81932c67aa3a0b86f70eea008f8a90455e03d77 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include')
-rw-r--r--include/local-def.h7
-rw-r--r--include/proto-def.h3
2 files changed, 1 insertions, 9 deletions
diff --git a/include/local-def.h b/include/local-def.h
index f03666a4..a55326f1 100644
--- a/include/local-def.h
+++ b/include/local-def.h
@@ -153,10 +153,7 @@ typedef struct {
char *rootdir; // base dir for httpd file download
char *rootbase; // Angular HTML5 base URL
char *rootapi; // Base URL for REST APIs
- char *pidfile; // where to store pid when running background
char *sessiondir; // where to store mixer session files
- char *configfile; // where to store configuration on gateway exit
- char *setuid; // downgrade uid to username
char *token; // initial authentication token [default NULL no session]
int cacheTimeout;
int apiTimeout;
@@ -229,17 +226,15 @@ struct MHD_Daemon;
typedef struct {
AFB_config *config; // pointer to current config
// List of commands to execute
- int killPrevious;
int background; // run in backround mode
int foreground; // run in forground mode
char *cacheTimeout; // http require timeout to be a string
- struct MHD_Daemon *httpd; // anonymous structure for httpd handler
+ struct MHD_Daemon *httpd; // structure for httpd handler
int fakemod; // respond to GET/POST request without interacting with sndboard
int readyfd; // a #fd to signal when ready to serve
AFB_plugin **plugins; // pointer to REST/API plugins
magic_t magic; // Mime type file magic lib
struct afb_hsrv_handler *handlers;
- sigjmp_buf restartCkpt; // context save for restart set/longjmp
} AFB_session;
diff --git a/include/proto-def.h b/include/proto-def.h
index 89b6e3d3..ea939aa6 100644
--- a/include/proto-def.h
+++ b/include/proto-def.h
@@ -66,8 +66,5 @@ extern AFB_error httpdLoop (AFB_session *session);
extern void httpdStop (AFB_session *session);
-// config management
-extern AFB_session *configInit (void);
-extern AFB_error configLoadFile (AFB_session * session, AFB_config *cliconfig);