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-hsrv.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-hsrv.c')
-rw-r--r-- | src/afb-hsrv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c index d06d8fc2..1db59cd3 100644 --- a/src/afb-hsrv.c +++ b/src/afb-hsrv.c @@ -38,7 +38,7 @@ #include "verbose.h" #include "locale-root.h" -#include "afb-common.h" +#include "afb-systemd.h" #include "jobs.h" #define JSON_CONTENT "application/json" @@ -420,7 +420,7 @@ int afb_hsrv_start(struct afb_hsrv *hsrv, uint16_t port, unsigned int connection return 0; } - rc = sd_event_add_io(afb_common_get_event_loop(), &evsrc, info->listen_fd, EPOLLIN, io_event_callback, hsrv); + rc = sd_event_add_io(afb_systemd_get_event_loop(), &evsrc, info->listen_fd, EPOLLIN, io_event_callback, hsrv); if (rc < 0) { MHD_stop_daemon(httpd); errno = -rc; |