From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDxDo-0001SV-RC for qemu-devel@nongnu.org; Tue, 18 Sep 2012 08:48:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDxDj-0005Tc-29 for qemu-devel@nongnu.org; Tue, 18 Sep 2012 08:48:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDxDi-0005TX-QH for qemu-devel@nongnu.org; Tue, 18 Sep 2012 08:48:06 -0400 Message-ID: <50586D7F.8060307@redhat.com> Date: Tue, 18 Sep 2012 14:47:59 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <20120917152149.GB6879@in.ibm.com> <20120917152249.GC6879@in.ibm.com> In-Reply-To: <20120917152249.GC6879@in.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v7 1/5] sockets: Make inet_parse() non static. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bharata@linux.vnet.ibm.com Cc: Anthony Liguori , Anand Avati , Vijay Bellur , Stefan Hajnoczi , Amar Tumballi , qemu-devel@nongnu.org, Markus Armbruster , Blue Swirl , Avi Kivity , Paolo Bonzini Am 17.09.2012 17:22, schrieb Bharata B Rao: > 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. As a pre-requisite, define and > globalize the qemu_inet_opts. > > Signed-off-by: Bharata B Rao > --- > > Makefile.objs | 2 +- > qemu-config.c | 31 +++++++++++++++++++++++++++++++ > qemu-sockets.c | 42 ++++++------------------------------------ > qemu_socket.h | 1 + > 4 files changed, 39 insertions(+), 37 deletions(-) Making the option list global sounds fine, but I don't think it should be moved to qemu-config.c or added to vm_config_groups, which is generally used for command line options and config file entries. At least I can't imagine a command line option -inet would be very useful. Kevin