main-afb-daemon: Export variables to connect to binder 11/17811/1
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 8 Nov 2018 14:25:11 +0000 (15:25 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 8 Nov 2018 14:29:25 +0000 (15:29 +0100)
commit83c9e99afda0f18e01b9f6dead29d81877568ef4
treeaf4b08ec3d828e609dc0aeef42ad80988bba8fba
parenta868fc272224cc8737e2925aa5cc94f0dd0bc8d6
main-afb-daemon: Export variables to connect to binder

Two new variables are exported that will allow
to connect to the binder:

 - AFB_PORT: the HTTP port that the binder listen
 - AFB_TOKEN: the initial token that the binder expects

These variables are defined only if the HTTP server
is started. They are available during initialisation
of bindings, even if it is before the real start of the
HTTP server.

Change-Id: I1b7c8572e3d77b7036a32af47b2a2f1d95803a41
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/main-afb-daemon.c