[Spice-devel] [PATCH spice-server 12/30] Make websocket_ack_close static
Frediano Ziglio
fziglio at redhat.com
Mon Nov 21 12:51:59 UTC 2016
---
server/websocket.c | 4 +++-
server/websocket.h | 1 -
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/server/websocket.c b/server/websocket.c
index 771b72d..6f16f6f 100644
--- a/server/websocket.c
+++ b/server/websocket.c
@@ -54,6 +54,8 @@
#define WEBSOCKET_GUID "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
+static void websocket_ack_close(void *opaque, websocket_write_cb_t write_cb);
+
/* Perform a case insenstive search for needle in haystack.
If found, return a pointer to the byte after the end of needle.
Otherwise, return NULL */
@@ -434,7 +436,7 @@ int websocket_write(RedsWebSocket *ws, const void *buf, size_t len)
return rc;
}
-void websocket_ack_close(void *opaque, websocket_write_cb_t write_cb)
+static void websocket_ack_close(void *opaque, websocket_write_cb_t write_cb)
{
unsigned char header[2];
diff --git a/server/websocket.h b/server/websocket.h
index 6523e22..db02420 100644
--- a/server/websocket.h
+++ b/server/websocket.h
@@ -51,5 +51,4 @@ void websocket_create_reply(gchar *buf, gchar *outbuf);
int websocket_read(RedsWebSocket *ws, guchar *buf, size_t len);
int websocket_write(RedsWebSocket *ws, const void *buf, size_t len);
int websocket_writev(RedsWebSocket *ws, const struct iovec *iov, int iovcnt);
-void websocket_ack_close(void *opaque, websocket_write_cb_t write_cb);
--
2.7.4
More information about the Spice-devel
mailing list