From patchwork Wed Jan 20 13:42:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 43280 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A91C2B7CBB for ; Thu, 21 Jan 2010 00:45:44 +1100 (EST) Received: from localhost ([127.0.0.1]:49021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXar7-00044h-Kn for incoming@patchwork.ozlabs.org; Wed, 20 Jan 2010 08:44:21 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXaph-00043w-Sb for qemu-devel@nongnu.org; Wed, 20 Jan 2010 08:42:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXapd-00042y-K8 for qemu-devel@nongnu.org; Wed, 20 Jan 2010 08:42:53 -0500 Received: from [199.232.76.173] (port=41497 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXapd-00042t-Bn for qemu-devel@nongnu.org; Wed, 20 Jan 2010 08:42:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43139) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXapc-0000yD-Si for qemu-devel@nongnu.org; Wed, 20 Jan 2010 08:42:49 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0KDgltq012883 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 20 Jan 2010 08:42:48 -0500 Received: from localhost (vpn-246-151.phx2.redhat.com [10.3.246.151]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0KDgkcg024699 for ; Wed, 20 Jan 2010 08:42:47 -0500 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Wed, 20 Jan 2010 11:42:38 -0200 Message-Id: <1263994960-8411-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1263994960-8411-1-git-send-email-lcapitulino@redhat.com> References: <1263994960-8411-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 1/3] net: Make inet_strfamily() public X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org So that it can be used by other subsystems. Signed-off-by: Luiz Capitulino --- 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 8850516..720de22 100644 --- a/qemu-sockets.c +++ b/qemu-sockets.c @@ -91,7 +91,7 @@ static void inet_setport(struct addrinfo *e, int port) } } -static const char *inet_strfamily(int family) +const char *inet_strfamily(int family) { switch (family) { case PF_INET6: return "ipv6"; diff --git a/qemu_socket.h b/qemu_socket.h index 86bdbf5..7ee46ac 100644 --- a/qemu_socket.h +++ b/qemu_socket.h @@ -44,6 +44,7 @@ int inet_listen(const char *str, char *ostr, int olen, int inet_connect_opts(QemuOpts *opts); int inet_connect(const char *str, int socktype); int inet_dgram_opts(QemuOpts *opts); +const char *inet_strfamily(int family); int unix_listen_opts(QemuOpts *opts); int unix_listen(const char *path, char *ostr, int olen);