From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TG4Oe-0004yY-7V for qemu-devel@nongnu.org; Mon, 24 Sep 2012 04:52:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TG4Oc-0001Pn-Mw for qemu-devel@nongnu.org; Mon, 24 Sep 2012 04:52:08 -0400 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:39524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TG4Oc-0001PB-3W for qemu-devel@nongnu.org; Mon, 24 Sep 2012 04:52:06 -0400 Received: from /spool/local by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 24 Sep 2012 14:22:03 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q8O8q1AS4719090 for ; Mon, 24 Sep 2012 14:22:01 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q8O8q08W002542 for ; Mon, 24 Sep 2012 18:52:00 +1000 Date: Mon, 24 Sep 2012 14:24:01 +0530 From: Bharata B Rao Message-ID: <20120924085401.GF18470@in.ibm.com> References: <20120924085127.GC18470@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120924085127.GC18470@in.ibm.com> Subject: [Qemu-devel] [PATCH v8 3/6] sockets: Make inet_parse() non static. Reply-To: bharata@linux.vnet.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Anthony Liguori , Anand Avati , Vijay Bellur , Stefan Hajnoczi , Harsh Bora , Amar Tumballi , Markus Armbruster , Blue Swirl , Avi Kivity , Paolo Bonzini sockets: Make inet_parse() non static. From: Bharata B Rao Make inet_parse() non-static so that other subsystems like gluster can use it to parse inet addresses. Signed-off-by: Bharata B Rao --- 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);