Replace session's value with sessions's cookies
[src/app-framework-binder.git] / src / main.c
index 05805e2..3929674 100644 (file)
@@ -41,8 +41,8 @@
 #include "afb-hsrv.h"
 #include "afb-context.h"
 #include "afb-hreq.h"
-#include "afb-sig-handler.h"
-#include "afb-thread.h"
+#include "sig-monitor.h"
+#include "jobs.h"
 #include "afb-session.h"
 #include "verbose.h"
 #include "afb-common.h"
@@ -429,7 +429,7 @@ int main(int argc, char *argv[])
        start_list(config->ldpaths, afb_api_so_add_pathset, "the binding path set");
        start_list(config->so_bindings, afb_api_so_add_binding, "the binding");
 
-       afb_session_init(config->nbSessionMax, config->cntxTimeout, config->token, afb_apis_count());
+       afb_session_init(config->nbSessionMax, config->cntxTimeout, config->token);
 
        start_list(config->dbus_servers, afb_api_dbus_add_server, "the afb-dbus service");
        start_list(config->ws_servers, afb_api_ws_add_server, "the afb-websocket service");
@@ -439,7 +439,7 @@ int main(int argc, char *argv[])
                exit(1);
        }
 
-       if (afb_sig_handler_init() < 0) {
+       if (sig_monitor_init() < 0) {
                ERROR("failed to initialise signal handlers");
                return 1;
        }
@@ -450,7 +450,7 @@ int main(int argc, char *argv[])
                return 1;
        }
 
-       if (afb_thread_init(3, 1, 20) < 0) {
+       if (jobs_init(3, 1, 20) < 0) {
                ERROR("failed to initialise threading");
                return 1;
        }