io: pass a struct iovec into qio_channel_websock_encode
commitfb74e5903914b9ec8c80b6f7a35da000f9f92ae7
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 9 Oct 2017 15:33:20 +0000 (9 16:33 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 16 Oct 2017 15:57:08 +0000 (16 16:57 +0100)
tree37a408007b27bccda5206cf582c1221ec80b5416
parentbac6c95415788c03590542eb244c723a18d0771c
io: pass a struct iovec into qio_channel_websock_encode

Instead of requiring use of another Buffer, pass a struct iovec
into qio_channel_websock_encode, which gives callers more
flexibility in how they process data.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
io/channel-websock.c