Update copyright dates
[src/app-framework-binder.git] / src / afb-ws-json1.h
index 014b9aa..6e5220c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 IoT.bzh
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author: José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
 #pragma once
 
 struct afb_ws_json1;
-struct AFB_clientCtx;
+struct afb_context;
+struct afb_apiset;
+struct fdev;
 
-extern struct afb_ws_json1 *afb_ws_json1_create(int fd, struct AFB_clientCtx *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);