qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH V20 2/8] make path_has_protocol non static


From: Dong Xu Wang
Subject: [Qemu-devel] [PATCH V20 2/8] make path_has_protocol non static
Date: Mon, 26 Aug 2013 00:06:14 +0800

We will use path_has_protocol outside block.c, so just make it public.

Reviewed-by: Michael Roth <address@hidden>
Signed-off-by: Dong Xu Wang <address@hidden>
---
 block.c               | 2 +-
 include/block/block.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/block.c b/block.c
index fcc8870..b2711e9 100644
--- a/block.c
+++ b/block.c
@@ -189,7 +189,7 @@ static void bdrv_io_limits_intercept(BlockDriverState *bs,
 }
 
 /* check if the path starts with "<protocol>:" */
-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 476d168..f025185 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -343,6 +343,7 @@ void bdrv_img_create(const char *filename, const char *fmt,
 void bdrv_set_buffer_alignment(BlockDriverState *bs, int align);
 void *qemu_blockalign(BlockDriverState *bs, size_t size);
 bool bdrv_qiov_is_aligned(BlockDriverState *bs, QEMUIOVector *qiov);
+int path_has_protocol(const char *path);
 
 struct HBitmapIter;
 void bdrv_set_dirty_tracking(BlockDriverState *bs, int granularity);
-- 
1.7.11.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]