From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzYjx-0007Yp-UE for qemu-devel@nongnu.org; Thu, 30 Apr 2009 12:04:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzYjt-0007X0-Ou for qemu-devel@nongnu.org; Thu, 30 Apr 2009 12:04:01 -0400 Received: from [199.232.76.173] (port=39901 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzYjt-0007Ws-HT for qemu-devel@nongnu.org; Thu, 30 Apr 2009 12:03:57 -0400 Received: from oxygen.pond.sub.org ([213.239.205.148]:59684) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LzYjs-0003Ha-Js for qemu-devel@nongnu.org; Thu, 30 Apr 2009 12:03:57 -0400 Received: from pike.pond.sub.org (pD9E38364.dip.t-dialin.net [217.227.131.100]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 97AC4276D53 for ; Thu, 30 Apr 2009 18:03:49 +0200 (CEST) From: Markus Armbruster Date: Thu, 30 Apr 2009 18:03:47 +0200 Message-Id: <9f44be8230a7cdfd9588ffffed74400086bb1401.1241106809.git.armbru@redhat.com> In-Reply-To: References: Subject: [Qemu-devel] [PATCH 3/4] Give parse_macaddr() external linkage List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is to make it available for the machine description stuff in the following commit. Signed-off-by: Markus Armbruster --- net.c | 2 +- net.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net.c b/net.c index 7ae1e6d..80d14c2 100644 --- a/net.c +++ b/net.c @@ -158,7 +158,7 @@ static void hex_dump(FILE *f, const uint8_t *buf, int size) } #endif -static int parse_macaddr(uint8_t *macaddr, const char *p) +int parse_macaddr(uint8_t *macaddr, const char *p) { int i; char *last_char; diff --git a/net.h b/net.h index cdf63a4..fd33165 100644 --- a/net.h +++ b/net.h @@ -61,6 +61,7 @@ int qemu_can_send_packet(VLANClientState *vc); ssize_t qemu_sendv_packet(VLANClientState *vc, const struct iovec *iov, int iovcnt); void qemu_send_packet(VLANClientState *vc, const uint8_t *buf, int size); +int parse_macaddr(uint8_t *macaddr, const char *p); void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]); void qemu_check_nic_model(NICInfo *nd, const char *model); void qemu_check_nic_model_list(NICInfo *nd, const char * const *models, -- 1.6.0.6