From patchwork Fri Nov 16 10:12:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 199530 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 351B22C008C for ; Fri, 16 Nov 2012 21:14:39 +1100 (EST) Received: from localhost ([::1]:33788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZIwX-0001IL-5x for incoming@patchwork.ozlabs.org; Fri, 16 Nov 2012 05:14:37 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZIw9-0000mv-F5 for qemu-devel@nongnu.org; Fri, 16 Nov 2012 05:14:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZIw6-0001Na-6N for qemu-devel@nongnu.org; Fri, 16 Nov 2012 05:14:13 -0500 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:40741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZIw5-0001NQ-KJ for qemu-devel@nongnu.org; Fri, 16 Nov 2012 05:14:10 -0500 Received: from /spool/local by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 16 Nov 2012 20:10:48 +1000 Received: from d23relay03.au.ibm.com (202.81.31.245) by e23smtp03.au.ibm.com (202.81.31.209) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 16 Nov 2012 20:10:47 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAGAE6Fs65339536 for ; Fri, 16 Nov 2012 21:14:06 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAGAE5Vp013460 for ; Fri, 16 Nov 2012 21:14:06 +1100 Received: from RedHat62GAWSWenchao ([9.125.27.167]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id qAGACNnv010442; Fri, 16 Nov 2012 21:14:02 +1100 From: Wenchao Xia To: qemu-devel@nongnu.org Date: Fri, 16 Nov 2012 18:12:13 +0800 Message-Id: <1353060737-4244-5-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1353060737-4244-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1353060737-4244-1-git-send-email-xiawenc@linux.vnet.ibm.com> x-cbid: 12111610-6102-0000-0000-00000291FBCF X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 202.81.31.145 Cc: kwolf@redhat.com, peter.maydell@linaro.org, aliguori@us.ibm.com, stefanha@gmail.com, blauwirbel@gmail.com, pbonzini@redhat.com, Wenchao Xia Subject: [Qemu-devel] [PATCH V9 4/8] block export function path_has_protocol X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list 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 This function is needed in other module, so export it. There is already some patch on mail-list try export it, If that patch was applied, pls ignore this one. Signed-off-by: Wenchao Xia --- block.c | 2 +- block.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index da1fdca..ced9018 100644 --- a/block.c +++ b/block.c @@ -199,7 +199,7 @@ static void bdrv_io_limits_intercept(BlockDriverState *bs, } /* check if the path starts with ":" */ -static int path_has_protocol(const char *path) +int path_has_protocol(const char *path) { const char *p; diff --git a/block.h b/block.h index 722c620..6805245 100644 --- a/block.h +++ b/block.h @@ -428,6 +428,8 @@ typedef enum { BLKDBG_EVENT_MAX, } BlkDebugEvent; +int path_has_protocol(const char *path); + #define BLKDBG_EVENT(bs, evt) bdrv_debug_event(bs, evt) void bdrv_debug_event(BlockDriverState *bs, BlkDebugEvent event);