diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-02-21 11:38:59 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-02-21 11:38:59 +0100 |
commit | b182590a555afe093d2d6e5cdf3e1e2410d1a0f5 (patch) | |
tree | fa423cca01de124da4ddfda6d2bae96c367685b9 /src/afb-api-ws.c | |
parent | 587d83da1a6efd68ff45e308dd9691a00fc53fba (diff) |
afb-systemd: Isolate systemd main entries
This change prepares the possibilty to remove the dependency
to systemd/libsystemd.
Change-Id: Ife4181d6c7195230a11a32e527b8973af6a096e1
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-ws.c')
-rw-r--r-- | src/afb-api-ws.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-api-ws.c b/src/afb-api-ws.c index 0e4d1d05..26d01932 100644 --- a/src/afb-api-ws.c +++ b/src/afb-api-ws.c @@ -33,7 +33,7 @@ #include <systemd/sd-event.h> #include "afb-api.h" #include "afb-apiset.h" -#include "afb-common.h" +#include "afb-systemd.h" #include "afb-stub-ws.h" #include "verbose.h" #include "sd-fds.h" @@ -310,7 +310,7 @@ static int api_ws_server_connect(struct api_ws *apiws) ERROR("can't create socket %s", apiws->path); else { /* listen for service */ - rc = sd_event_add_io(afb_common_get_event_loop(), + rc = sd_event_add_io(afb_systemd_get_event_loop(), &apiws->listensrc, apiws->fd, EPOLLIN, api_ws_server_listen_callback, apiws); if (rc >= 0) |