summaryrefslogtreecommitdiffstats
path: root/include/qemu/sockets.h
diff options
context:
space:
mode:
authorAshijeet Acharya2016-10-25 15:03:58 +0200
committerKevin Wolf2016-10-31 16:49:13 +0100
commit89cadc9dc0f7c6a48c243bf7d9ad983a9b667426 (patch)
tree5e11d6f3be43eff7bc5b236f3ec1cf193c7129fd /include/qemu/sockets.h
parentblock/ssh: Add ssh_has_filename_options_conflict() (diff)
downloadqemu-89cadc9dc0f7c6a48c243bf7d9ad983a9b667426.tar.gz
qemu-89cadc9dc0f7c6a48c243bf7d9ad983a9b667426.tar.xz
qemu-89cadc9dc0f7c6a48c243bf7d9ad983a9b667426.zip
util/qemu-sockets: Make inet_connect_saddr() public
Make inet_connect_saddr() in util/qemu-sockets.c public in order to be able to use it with InetSocketAddress sockets outside of util/qemu-sockets.c independently. Signed-off-by: Ashijeet Acharya <ashijeetacharya@gmail.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/qemu/sockets.h')
-rw-r--r--include/qemu/sockets.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h
index 9eb24707df..5589e6842b 100644
--- a/include/qemu/sockets.h
+++ b/include/qemu/sockets.h
@@ -34,6 +34,8 @@ typedef void NonBlockingConnectHandler(int fd, Error *err, void *opaque);
InetSocketAddress *inet_parse(const char *str, Error **errp);
int inet_connect(const char *str, Error **errp);
+int inet_connect_saddr(InetSocketAddress *saddr, Error **errp,
+ NonBlockingConnectHandler *callback, void *opaque);
NetworkAddressFamily inet_netfamily(int family);