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 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> Subject: [Qemu-devel] [PATCH 1/3] net: Make inet_strfamily() public List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@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); -- 1.6.6