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:
Frediano Ziglio 2019-06-22 17:54:30 +01:00
parent bbfb472154
commit b5f3ed1502
2 changed files with 3 additions and 2 deletions

View File

@ -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];

View File

@ -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);