aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-07-24 14:45:11 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-07-24 16:28:32 +0200
commit8d95d38217977f95f7cae3685f8639ac040da443 (patch)
tree799383d1c8f2f339b3b17e4b1c6c2edff5d797c6
parent77ca8b40f2d0c8b1cbf9960bd5a5b2aec36fef38 (diff)
main-afb-daemon: Reorder instantiation of API
The client API are now instanciated after the server API. This allows to be client of itself but forbids to export (serve) a client API. Change-Id: I9b19180cfb60108344c2f846427e964df8339430 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/main-afb-daemon.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main-afb-daemon.c b/src/main-afb-daemon.c
index ce681e38..721faf2f 100644
--- a/src/main-afb-daemon.c
+++ b/src/main-afb-daemon.c
@@ -599,18 +599,15 @@ static void start(int signum, void *arg)
/* load bindings */
afb_debug("start-load");
apiset_start_list(main_config->so_bindings, afb_api_so_add_binding, "the binding");
-#if defined(WITH_DBUS_TRANSPARENCY)
- apiset_start_list(main_config->dbus_clients, afb_api_dbus_add_client, "the afb-dbus client");
-#endif
- apiset_start_list(main_config->ws_clients, afb_api_ws_add_client_weak, "the afb-websocket client");
apiset_start_list(main_config->ldpaths, afb_api_so_add_pathset_fails, "the binding path set");
apiset_start_list(main_config->weak_ldpaths, afb_api_so_add_pathset_nofails, "the weak binding path set");
apiset_start_list(main_config->auto_api, afb_autoset_add_any, "the automatic api path set");
-
+ apiset_start_list(main_config->ws_servers, afb_api_ws_add_server, "the afb-websocket service");
#if defined(WITH_DBUS_TRANSPARENCY)
apiset_start_list(main_config->dbus_servers, afb_api_dbus_add_server, "the afb-dbus service");
+ apiset_start_list(main_config->dbus_clients, afb_api_dbus_add_client, "the afb-dbus client");
#endif
- apiset_start_list(main_config->ws_servers, afb_api_ws_add_server, "the afb-websocket service");
+ apiset_start_list(main_config->ws_clients, afb_api_ws_add_client_weak, "the afb-websocket client");
DEBUG("Init config done");