From patchwork Tue Jan 29 04:51:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [V16,5/9] block: export function path_has_protocol() From: Wayne Xia X-Patchwork-Id: 216429 Message-Id: <1359435076-13673-6-git-send-email-xiawenc@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@gmail.com, aliguori@us.ibm.com, Wenchao Xia , pbonzini@redhat.com Date: Tue, 29 Jan 2013 12:51:12 +0800 libqblock need to use it. Signed-off-by: Wenchao Xia --- block.c | 2 +- include/block/block.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index ba67c0d..44db62f 100644 --- a/block.c +++ b/block.c @@ -195,7 +195,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/include/block/block.h b/include/block/block.h index 5c3b911..40b63b1 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -395,6 +395,8 @@ void bdrv_acct_start(BlockDriverState *bs, BlockAcctCookie *cookie, int64_t bytes, enum BlockAcctType type); void bdrv_acct_done(BlockDriverState *bs, BlockAcctCookie *cookie); +int path_has_protocol(const char *path); + typedef enum { BLKDBG_L1_UPDATE,