aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-ws-json1.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-json1.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-json1.h')
-rw-r--r--src/afb-ws-json1.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afb-ws-json1.h b/src/afb-ws-json1.h
index 96db1bc6..024dd8c0 100644
--- a/src/afb-ws-json1.h
+++ b/src/afb-ws-json1.h
@@ -20,8 +20,9 @@
struct afb_ws_json1;
struct afb_context;
struct afb_apiset;
+struct fdev;
-extern struct afb_ws_json1 *afb_ws_json1_create(int fd, struct afb_apiset *apiset, struct afb_context *context, void (*cleanup)(void*), void *closure);
+extern struct afb_ws_json1 *afb_ws_json1_create(struct fdev *fdev, struct afb_apiset *apiset, struct afb_context *context, void (*cleanup)(void*), void *closure);
extern struct afb_ws_json1 *afb_ws_json1_addref(struct afb_ws_json1 *ws);
extern void afb_ws_json1_unref(struct afb_ws_json1 *ws);