From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeJwQ-0006mU-Gm for qemu-devel@nongnu.org; Fri, 30 Nov 2012 01:19:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeJwP-0002mj-EC for qemu-devel@nongnu.org; Fri, 30 Nov 2012 01:19:14 -0500 Received: from e28smtp09.in.ibm.com ([122.248.162.9]:34702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeJwO-0002kd-Sq for qemu-devel@nongnu.org; Fri, 30 Nov 2012 01:19:13 -0500 Received: from /spool/local by e28smtp09.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 30 Nov 2012 11:49:10 +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 qAU6J7FD16777330 for ; Fri, 30 Nov 2012 11:49:07 +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 qAUBmwqW012099 for ; Fri, 30 Nov 2012 11:48:59 GMT From: Wenchao Xia Date: Fri, 30 Nov 2012 14:17:18 +0800 Message-Id: <1354256243-8375-3-git-send-email-xiawenc@linux.vnet.ibm.com> In-Reply-To: <1354256243-8375-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1354256243-8375-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v13 2/7] block export function path_has_protocol List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanha@gmail.com, blauwirbel@gmail.com, pbonzini@redhat.com, Wenchao Xia 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 c05875f..5c8b542 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); -- 1.7.1