afb-ws-json1: expose addref/unref functions
[src/app-framework-binder.git] / src / afb-ws-json1.h
index 3bcda81..96db1bc 100644 (file)
@@ -19,9 +19,9 @@
 
 struct afb_ws_json1;
 struct afb_context;
-struct afb_req_itf;
+struct afb_apiset;
 
-extern const struct afb_req_itf afb_ws_json1_req_itf;
-
-extern struct afb_ws_json1 *afb_ws_json1_create(int fd, struct afb_context *context, void (*cleanup)(void*), void *closure);
+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_addref(struct afb_ws_json1 *ws);
+extern void afb_ws_json1_unref(struct afb_ws_json1 *ws);