diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2018-08-20 16:09:40 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-08-22 14:03:52 +0200 |
commit | 2f7dde4aa74dfa7caba3ddcf125de4693b983c4f (patch) | |
tree | cd1e3e526629d2cd4bc2f19760bb611789ea4b61 /src/afb-socket.h | |
parent | 58a21f8f9465a20cba3fdfc3abaee866dafc245f (diff) |
afb-socket: Improvement
Allows to either open a 'struct fdev*' or a int.
This prepares further integration in afb-api-ws.
Bug-AGL: SPEC-1668
Change-Id: I3d61be582bceaab636460b3c7de3ac2f24ed9473
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-socket.h')
-rw-r--r-- | src/afb-socket.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/afb-socket.h b/src/afb-socket.h index dff922b8..d3932ffb 100644 --- a/src/afb-socket.h +++ b/src/afb-socket.h @@ -19,4 +19,8 @@ struct fdev; -extern struct fdev *afb_socket_open(const char *uri, int server); +extern int afb_socket_open(const char *uri, int server); + +extern struct fdev *afb_socket_open_fdev(const char *uri, int server); + +extern const char *afb_socket_api(const char *uri); |