diff options
| author | Juan Quintela | 2019-08-20 09:40:39 +0200 |
|---|---|---|
| committer | Juan Quintela | 2019-09-03 23:24:42 +0200 |
| commit | 7959e29ea0d6100038367beff9a0da0c83b322a2 (patch) | |
| tree | d0b32ccaf166ac547af26a64e80f624c750bccfb /include/io | |
| parent | socket: Add num connections to qio_channel_socket_sync() (diff) | |
| download | qemu-7959e29ea0d6100038367beff9a0da0c83b322a2.tar.gz qemu-7959e29ea0d6100038367beff9a0da0c83b322a2.tar.xz qemu-7959e29ea0d6100038367beff9a0da0c83b322a2.zip | |
socket: Add num connections to qio_channel_socket_async()
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/io/channel-socket.h b/include/io/channel-socket.h index ed88e5b8c1..777ff5954e 100644 --- a/include/io/channel-socket.h +++ b/include/io/channel-socket.h @@ -140,6 +140,7 @@ int qio_channel_socket_listen_sync(QIOChannelSocket *ioc, * qio_channel_socket_listen_async: * @ioc: the socket channel object * @addr: the address to listen to + * @num: the expected ammount of connections * @callback: the function to invoke on completion * @opaque: user data to pass to @callback * @destroy: the function to free @opaque @@ -155,6 +156,7 @@ int qio_channel_socket_listen_sync(QIOChannelSocket *ioc, */ void qio_channel_socket_listen_async(QIOChannelSocket *ioc, SocketAddress *addr, + int num, QIOTaskFunc callback, gpointer opaque, GDestroyNotify destroy, |
