aboutsummaryrefslogtreecommitdiff
path: root/include/io
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2019-08-19 15:29:58 +0200
committerJuan Quintela <quintela@redhat.com>2019-09-03 23:24:42 +0200
commit4e2d8bf6f143138ad121545a7cf4525e36040039 (patch)
tree52d1502ef57984dbf9fef936d92c76b74f7753f3 /include/io
parente5b6353cf25c99c3f08bf51e29933352f7140e8f (diff)
downloadqemu-4e2d8bf6f143138ad121545a7cf4525e36040039.zip
qemu-4e2d8bf6f143138ad121545a7cf4525e36040039.tar.gz
qemu-4e2d8bf6f143138ad121545a7cf4525e36040039.tar.bz2
socket: Add num connections to qio_channel_socket_sync()
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/io')
-rw-r--r--include/io/channel-socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/io/channel-socket.h b/include/io/channel-socket.h
index d7134d2..ed88e5b 100644
--- a/include/io/channel-socket.h
+++ b/include/io/channel-socket.h
@@ -123,6 +123,7 @@ void qio_channel_socket_connect_async(QIOChannelSocket *ioc,
* qio_channel_socket_listen_sync:
* @ioc: the socket channel object
* @addr: the address to listen to
+ * @num: the expected ammount of connections
* @errp: pointer to a NULL-initialized error object
*
* Attempt to listen to the address @addr. This method
@@ -132,6 +133,7 @@ void qio_channel_socket_connect_async(QIOChannelSocket *ioc,
*/
int qio_channel_socket_listen_sync(QIOChannelSocket *ioc,
SocketAddress *addr,
+ int num,
Error **errp);
/**