X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-stub-ws.h;h=c08772687c2026365da77d70da0c0e281afc3a54;hb=refs%2Fheads%2Fsandbox%2FDDTLK%2Fpakage;hp=aa643363605bcb15cbdd1e56cc080af2252b7867;hpb=24d000c2290126abf88204089d132229d63f9a05;p=src%2Fapp-framework-binder.git diff --git a/src/afb-stub-ws.h b/src/afb-stub-ws.h index aa643363..c0877268 100644 --- a/src/afb-stub-ws.h +++ b/src/afb-stub-ws.h @@ -21,7 +21,7 @@ struct fdev; struct afb_stub_ws; struct afb_apiset; -struct afb_api; +struct afb_api_item; extern struct afb_stub_ws *afb_stub_ws_create_client(struct fdev *fdev, const char *apiname, struct afb_apiset *apiset); @@ -31,11 +31,13 @@ extern void afb_stub_ws_unref(struct afb_stub_ws *stubws); extern void afb_stub_ws_addref(struct afb_stub_ws *stubws); -extern void afb_stub_ws_on_hangup(struct afb_stub_ws *stubws, void (*on_hangup)(struct afb_stub_ws*)); +extern void afb_stub_ws_set_on_hangup(struct afb_stub_ws *stubws, void (*on_hangup)(struct afb_stub_ws*)); extern const char *afb_stub_ws_name(struct afb_stub_ws *stubws); -extern struct afb_api afb_stub_ws_client_api(struct afb_stub_ws *stubws); +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*)); +