Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- 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