aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-08-02 11:31:18 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-08-02 11:31:18 +0200
commited943b6facb90cfecf3008751e3b0ba5175998f6 (patch)
tree62676f637841d78e6b3666e43a526e1719f35fe4
parentbbddc1e584dd01b60042f622f8cecfc69361020b (diff)
adds extern to declarations
Change-Id: If91c5a49e1141d65b2927df708193c5cd38b3b56 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/websock.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/websock.h b/src/websock.h
index e024182e..660f4516 100644
--- a/src/websock.h
+++ b/src/websock.h
@@ -54,24 +54,24 @@ struct websock_itf {
struct websock;
-int websock_close_empty(struct websock *ws);
-int websock_close(struct websock *ws, uint16_t code, const void *data, size_t length);
-int websock_error(struct websock *ws, uint16_t code, const void *data, size_t length);
+extern int websock_close_empty(struct websock *ws);
+extern int websock_close(struct websock *ws, uint16_t code, const void *data, size_t length);
+extern int websock_error(struct websock *ws, uint16_t code, const void *data, size_t length);
-int websock_ping(struct websock *ws, const void *data, size_t length);
-int websock_pong(struct websock *ws, const void *data, size_t length);
-int websock_text(struct websock *ws, int last, const void *text, size_t length);
-int websock_text_v(struct websock *ws, int last, const struct iovec *iovec, int count);
-int websock_binary(struct websock *ws, int last, const void *data, size_t length);
-int websock_binary_v(struct websock *ws, int last, const struct iovec *iovec, int count);
-int websock_continue(struct websock *ws, int last, const void *data, size_t length);
-int websock_continue_v(struct websock *ws, int last, const struct iovec *iovec, int count);
+extern int websock_ping(struct websock *ws, const void *data, size_t length);
+extern int websock_pong(struct websock *ws, const void *data, size_t length);
+extern int websock_text(struct websock *ws, int last, const void *text, size_t length);
+extern int websock_text_v(struct websock *ws, int last, const struct iovec *iovec, int count);
+extern int websock_binary(struct websock *ws, int last, const void *data, size_t length);
+extern int websock_binary_v(struct websock *ws, int last, const struct iovec *iovec, int count);
+extern int websock_continue(struct websock *ws, int last, const void *data, size_t length);
+extern int websock_continue_v(struct websock *ws, int last, const struct iovec *iovec, int count);
-ssize_t websock_read(struct websock *ws, void *buffer, size_t size);
-int websock_drop(struct websock *ws);
+extern ssize_t websock_read(struct websock *ws, void *buffer, size_t size);
+extern int websock_drop(struct websock *ws);
-int websock_dispatch(struct websock *ws);
+extern int websock_dispatch(struct websock *ws);
-struct websock *websock_create_v13(const struct websock_itf *itf, void *closure);
-void websock_destroy(struct websock *ws);
+extern struct websock *websock_create_v13(const struct websock_itf *itf, void *closure);
+extern void websock_destroy(struct websock *ws);