From patchwork Mon Sep 24 08:54:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharata B Rao X-Patchwork-Id: 186318 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B781F2C0082 for ; Mon, 24 Sep 2012 18:52:20 +1000 (EST) Received: from localhost ([::1]:46956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TG4Oo-00051x-Vm for incoming@patchwork.ozlabs.org; Mon, 24 Sep 2012 04:52:18 -0400 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 d28relay05.in.ibm.com (9.184.220.62) by e28smtp02.in.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 24 Sep 2012 14:22:02 +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 Received: from in.ibm.com ([9.79.202.140]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q8O8ptm3002116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 24 Sep 2012 18:51:58 +1000 Date: Mon, 24 Sep 2012 14:24:01 +0530 From: Bharata B Rao To: qemu-devel@nongnu.org Message-ID: <20120924085401.GF18470@in.ibm.com> References: <20120924085127.GC18470@in.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120924085127.GC18470@in.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) x-cbid: 12092408-5816-0000-0000-000004974AE8 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 122.248.162.2 Cc: Kevin Wolf , Anthony Liguori , Anand Avati , Vijay Bellur , Stefan Hajnoczi , Harsh Bora , Amar Tumballi , Markus Armbruster , Blue Swirl , Avi Kivity , Paolo Bonzini Subject: [Qemu-devel] [PATCH v8 3/6] sockets: Make inet_parse() non static. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: bharata@linux.vnet.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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);