From patchwork Sat Nov 24 09:27:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 201451 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 C71962C0079 for ; Sat, 24 Nov 2012 21:18:13 +1100 (EST) Received: from localhost ([::1]:58059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcC4G-00085o-0X for incoming@patchwork.ozlabs.org; Sat, 24 Nov 2012 04:30:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcC3d-00070Y-H3 for qemu-devel@nongnu.org; Sat, 24 Nov 2012 04:29:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TcC3c-0000iU-DE for qemu-devel@nongnu.org; Sat, 24 Nov 2012 04:29:53 -0500 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:36577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TcC3b-0000i6-S9 for qemu-devel@nongnu.org; Sat, 24 Nov 2012 04:29:52 -0500 Received: from /spool/local by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 24 Nov 2012 19:26:14 +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; Sat, 24 Nov 2012 19:26:13 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAO9TjwH58261638 for ; Sat, 24 Nov 2012 20:29:45 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAO9TiIE026105 for ; Sat, 24 Nov 2012 20:29:45 +1100 Received: from RedHat62GAWSWenchao ([9.77.177.254]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id qAO9Rob5025579; Sat, 24 Nov 2012 20:29:43 +1100 From: Wenchao Xia To: qemu-devel@nongnu.org Date: Sat, 24 Nov 2012 17:27:20 +0800 Message-Id: <1353749244-25676-4-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1353749244-25676-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1353749244-25676-1-git-send-email-xiawenc@linux.vnet.ibm.com> x-cbid: 12112409-6102-0000-0000-0000029D9F09 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, aliguori@us.ibm.com, stefanha@gmail.com, blauwirbel@gmail.com, pbonzini@redhat.com, Wenchao Xia Subject: [Qemu-devel] [PATCH V11 3/7] 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 854ebd6..bfb2be8 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);