qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH 10/13] qemu-sockets: make inet_parse public


From: Paolo Bonzini
Subject: [Qemu-devel] [RFC PATCH 10/13] qemu-sockets: make inet_parse public
Date: Mon, 27 Aug 2012 17:00:23 +0200

Signed-off-by: Paolo Bonzini <address@hidden>
---
 qemu-sockets.c | 2 +-
 qemu_socket.h  | 1 +
 2 file modificati, 2 inserzioni(+). 1 rimozione(-)

diff --git a/qemu-sockets.c b/qemu-sockets.c
index b292311..7a28715 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -407,7 +407,7 @@ err:
 }
 
 /* compatibility wrapper */
-static int inet_parse(QemuOpts *opts, const char *str)
+int inet_parse(QemuOpts *opts, const char *str)
 {
     const char *optstr, *h;
     char addr[64];
diff --git a/qemu_socket.h b/qemu_socket.h
index c87ee57..e4cb6b1 100644
--- a/qemu_socket.h
+++ b/qemu_socket.h
@@ -41,6 +41,7 @@ void socket_set_nonblock(int fd);
 int send_all(int fd, const void *buf, int len1);
 
 /* New, ipv6-ready socket helper functions, see qemu-sockets.c */
+int inet_parse(QemuOpts *opts, const char *str);
 int inet_listen_opts(QemuOpts *opts, int port_offset, Error **errp);
 int inet_listen(const char *str, char *ostr, int olen,
                 int socktype, int port_offset, Error **errp);
-- 
1.7.11.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]