qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v8 3/6] sockets: Make inet_parse() non static.


From: Bharata B Rao
Subject: [Qemu-devel] [PATCH v8 3/6] sockets: Make inet_parse() non static.
Date: Mon, 24 Sep 2012 14:24:01 +0530
User-agent: Mutt/1.5.21 (2010-09-15)

sockets: Make inet_parse() non static.

From: Bharata B Rao <address@hidden>

Make inet_parse() non-static so that other subsystems like gluster
can use it to parse inet addresses.

Signed-off-by: Bharata B Rao <address@hidden>
---

 qemu-sockets.c |    2 +-
 qemu_socket.h  |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/qemu-sockets.c b/qemu-sockets.c
index 25285f2..e01ea8a 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -414,7 +414,7 @@ err:
  * port option of @opts. If default_port is -1, then the parser will
  * look for the port specification in @str mandatorily.
  */
-static int inet_parse(QemuOpts *opts, const char *str, int default_port)
+int inet_parse(QemuOpts *opts, const char *str, int default_port)
 {
     const char *optstr, *h;
     char addr[64];
diff --git a/qemu_socket.h b/qemu_socket.h
index c87ee57..309a389 100644
--- a/qemu_socket.h
+++ b/qemu_socket.h
@@ -48,6 +48,7 @@ int inet_connect_opts(QemuOpts *opts, bool *in_progress, 
Error **errp);
 int inet_connect(const char *str, bool block, bool *in_progress, Error **errp);
 int inet_dgram_opts(QemuOpts *opts);
 const char *inet_strfamily(int family);
+int inet_parse(QemuOpts *opts, const char *str, int default_port);
 
 int unix_listen_opts(QemuOpts *opts);
 int unix_listen(const char *path, char *ostr, int olen);




reply via email to

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