X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ws-json1.h;h=6e5220c05bdf90fe31dc2f13a5545a2592ec666f;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=f714c222b378c4ef95782429436e09bdbc3430c3;hpb=7e0abe76db7b90369429bf387d7aad0fb5a42328;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ws-json1.h b/src/afb-ws-json1.h index f714c222..6e5220c0 100644 --- a/src/afb-ws-json1.h +++ b/src/afb-ws-json1.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,9 +19,10 @@ struct afb_ws_json1; struct afb_context; -struct afb_req_itf; +struct afb_apiset; +struct fdev; -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(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);