From patchwork Tue Nov 20 09:46:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 200289 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 67EBA2C008F for ; Tue, 20 Nov 2012 21:29:44 +1100 (EST) Received: from localhost ([::1]:52928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TakRv-0005sx-T4 for incoming@patchwork.ozlabs.org; Tue, 20 Nov 2012 04:48:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TakRQ-0005CU-Gv for qemu-devel@nongnu.org; Tue, 20 Nov 2012 04:48:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TakRP-0004ei-CI for qemu-devel@nongnu.org; Tue, 20 Nov 2012 04:48:28 -0500 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:50639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TakRO-0004co-N5 for qemu-devel@nongnu.org; Tue, 20 Nov 2012 04:48:27 -0500 Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Nov 2012 15:18:24 +0530 Received: from d28relay05.in.ibm.com (9.184.220.62) by e28smtp03.in.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 20 Nov 2012 15:18:23 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAK9mMbC51904726 for ; Tue, 20 Nov 2012 15:18:22 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAKFIDo1023612 for ; Tue, 20 Nov 2012 15:18:14 GMT Received: from RedHat62GAWSWenchao ([9.77.180.146]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id qAKFFxVv014693; Tue, 20 Nov 2012 15:18:11 GMT From: Wenchao Xia To: qemu-devel@nongnu.org Date: Tue, 20 Nov 2012 17:46:03 +0800 Message-Id: <1353404767-4495-4-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1353404767-4495-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1353404767-4495-1-git-send-email-xiawenc@linux.vnet.ibm.com> x-cbid: 12112009-3864-0000-0000-000005A2CC03 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 122.248.162.3 Cc: kwolf@redhat.com, peter.maydell@linaro.org, aliguori@us.ibm.com, stefanha@gmail.com, blauwirbel@gmail.com, kraxel@redhat.com, pbonzini@redhat.com, xiawenc@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH V10 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);