X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain.c;h=39296742c50af6796e49d0dad1c36feed3dcf445;hb=3bf52bb36ed428d0a7b947519fbccc7c376fd4a9;hp=05805e2dad27989080519d534b4a7eabc2158189;hpb=f5ce0df45f5ce9f0b57b250dfd44513d085f1e54;p=src%2Fapp-framework-binder.git diff --git a/src/main.c b/src/main.c index 05805e2d..39296742 100644 --- a/src/main.c +++ b/src/main.c @@ -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; }