[Spice-devel] [PATCH spice-server 2/2] websocket: Make header self-independent
Uri Lublin
uril at redhat.com
Tue Jul 16 14:52:15 UTC 2019
On 6/27/19 6:03 PM, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Ack, with comment/suggestion below.
> ---
> server/websocket.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/server/websocket.h b/server/websocket.h
> index 7707e6804..ec452038b 100644
> --- a/server/websocket.h
> +++ b/server/websocket.h
> @@ -18,6 +18,10 @@
> #ifndef WEBSOCKET_H_
> #define WEBSOCKET_H_
>
> +#include <inttypes.h>
This is for uint8_t, maybe
#include <stdint.h>
> +
> +#include "sys-socket.h"
(This is for struct iovec)
Uri.
> +
> typedef ssize_t (*websocket_read_cb_t)(void *opaque, void *buf, size_t nbyte);
> typedef ssize_t (*websocket_write_cb_t)(void *opaque, const void *buf, size_t nbyte);
> typedef ssize_t (*websocket_writev_cb_t)(void *opaque, struct iovec *iov, int iovcnt);
>
More information about the Spice-devel
mailing list