aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-stub-ws.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-08-21 21:15:31 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-08-23 10:18:18 +0200
commit2991a2564bc5e21b04dcb3157ce38804080c0056 (patch)
tree529563afe088e7a9d91383e2cc256d97bd4c0022 /src/afb-stub-ws.h
parent7b6940f1524cac6172e71529a989424ff18fb850 (diff)
afb-stub-ws: Add reconnection of ws-clients on need
This implementation detects deconnections and try to reconnect lazily on need. Bug-AGL: SPEC-1668 Change-Id: Ib2a20a4578f2da80afe1564c42de96c4aa250e64 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-stub-ws.h')
-rw-r--r--src/afb-stub-ws.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afb-stub-ws.h b/src/afb-stub-ws.h
index f236937d..c0877268 100644
--- a/src/afb-stub-ws.h
+++ b/src/afb-stub-ws.h
@@ -39,3 +39,5 @@ extern struct afb_api_item afb_stub_ws_client_api(struct afb_stub_ws *stubws);
extern int afb_stub_ws_client_add(struct afb_stub_ws *stubws, struct afb_apiset *apiset);
+extern void afb_stub_ws_client_robustify(struct afb_stub_ws *stubws, struct fdev *(*reopen)(void*), void *closure, void (*release)(void*));
+