aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-ws.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-02-22 13:22:48 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-02-22 13:22:48 +0100
commitca820c65c2b03a24e8936218171c6c1d138fd1f7 (patch)
treef7e31ea8e63d3321af64226e360a78c504a09bb3 /src/afb-ws.h
parentf15ea770dd9b13a20331853a026091316984f9ca (diff)
fdev: Introduce fdev for file event handling
This is an effort to keep cutting dependency to systemd. Change-Id: I9a0c032a1095e297c7f3ac5b67827fda3658b8d9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-ws.h')
-rw-r--r--src/afb-ws.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-ws.h b/src/afb-ws.h
index 4b26f0b9..0af236ef 100644
--- a/src/afb-ws.h
+++ b/src/afb-ws.h
@@ -18,7 +18,7 @@
#pragma once
struct afb_ws;
-struct sd_event;
+struct fdev;
struct iovec;
struct afb_ws_itf
@@ -30,7 +30,7 @@ struct afb_ws_itf
void (*on_hangup) (void *); /* optional, it is safe too call afb_ws_destroy within the callback */
};
-extern struct afb_ws *afb_ws_create(struct sd_event *eloop, int fd, const struct afb_ws_itf *itf, void *closure);
+extern struct afb_ws *afb_ws_create(struct fdev *fdev, const struct afb_ws_itf *itf, void *closure);
extern void afb_ws_destroy(struct afb_ws *ws);
extern void afb_ws_hangup(struct afb_ws *ws);
extern int afb_ws_is_connected(struct afb_ws *ws);