diff options
author | 2017-01-04 18:52:32 +0100 | |
---|---|---|
committer | 2017-01-05 15:21:19 +0100 | |
commit | 84e049cf2312286ad1895cbebc82cabd5c30b9bb (patch) | |
tree | 7d2163d9de7258736daf3850d36bd9c0797ba02c /src/afb-config.h | |
parent | 4247029ca95bf3d3205410dc3b516ef27a220f69 (diff) |
Adds options --no-httpd and --exec
The option option --exec use the remaining arguments
of the command line (at the right of --exec) as a
command to launch with its arguments. Arguments can
use @p (for port), @t (for token) or @@ for @.
When the option --exec is given, the command is launched
as soon as afb-daemon is ready. When the command die,
afb-daemon exits and before exiting, afb-daemon kills
the launched command and its childs.
The option --no-http forbids the activation of
the HTTP server.
Change-Id: Icdd91d84c818796b5ac6ea5d33ff3549a2fe3c25
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-config.h')
-rw-r--r-- | src/afb-config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afb-config.h b/src/afb-config.h index 542a617e..eb76abe8 100644 --- a/src/afb-config.h +++ b/src/afb-config.h @@ -34,6 +34,7 @@ struct afb_config { char *rootapi; // Base URL for REST APIs char *sessiondir; // where to store mixer session files char *token; // initial authentication token [default NULL no session] + struct afb_config_list *aliases; struct afb_config_list *dbus_clients; struct afb_config_list *dbus_servers; @@ -42,6 +43,8 @@ struct afb_config { struct afb_config_list *so_bindings; struct afb_config_list *ldpaths; + char **exec; + int httpdPort; int background; // run in backround mode int readyfd; // a #fd to signal when ready to serve @@ -51,6 +54,7 @@ struct afb_config { int nbSessionMax; // max count of sessions int mode; // mode of listening int tracereq; + int noHttpd; }; extern struct afb_config *afb_config_parse_arguments(int argc, char **argv); |