mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 06:32:44 +00:00
websocket: Make websocket_ack_close static
It's used only in websocket.c. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jeremy White <jwhite@codeweavers.com>
This commit is contained in:
parent
bbfb472154
commit
b5f3ed1502
@ -63,6 +63,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 insensitive search for needle in haystack.
|
||||
If found, return a pointer to the byte after the end of needle.
|
||||
Otherwise, return NULL */
|
||||
@ -441,7 +443,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];
|
||||
|
||||
|
||||
@ -48,7 +48,6 @@ typedef struct {
|
||||
|
||||
bool websocket_is_start(char *buf);
|
||||
void websocket_create_reply(char *buf, char *outbuf);
|
||||
void websocket_ack_close(void *opaque, websocket_write_cb_t write_cb);
|
||||
int websocket_read(RedsWebSocket *ws, uint8_t *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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user