summaryrefslogtreecommitdiff
path: root/qemu_socket.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-10 10:58:37 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-11 10:19:48 -0500
commit2af2bf6760d9b2190b5a76487577075578c475d6 (patch)
treee4bf2b92fa95513f05398ba45cdeb6c6b14bc596 /qemu_socket.h
parent7d31544ff60d8b74fc2dbe07cb4f2ed20da1bfee (diff)
downloadqemu-2af2bf6760d9b2190b5a76487577075578c475d6.tar.gz
qemu-2af2bf6760d9b2190b5a76487577075578c475d6.tar.bz2
qemu-2af2bf6760d9b2190b5a76487577075578c475d6.zip
sockets: add unix_connect_opts
Add unix_connect_opts(). Does the same as unix_connect(), but uses QemuOpts. unix_connect() is a compatibility wrapper for unix_connect_opts() now and should go away some day. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu_socket.h')
-rw-r--r--qemu_socket.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu_socket.h b/qemu_socket.h
index fc5b5889b7..7ca4af7e0f 100644
--- a/qemu_socket.h
+++ b/qemu_socket.h
@@ -29,6 +29,8 @@ int inet_aton(const char *cp, struct in_addr *ia);
#endif /* !_WIN32 */
+#include "qemu-option.h"
+
/* misc helpers */
void socket_set_nonblock(int fd);
int send_all(int fd, const void *buf, int len1);
@@ -39,6 +41,7 @@ int inet_listen(const char *str, char *ostr, int olen,
int inet_connect(const char *str, int socktype);
int unix_listen(const char *path, char *ostr, int olen);
+int unix_connect_opts(QemuOpts *opts);
int unix_connect(const char *path);
/* Old, ipv4 only bits. Don't use for new code. */