[2/4] block: make path_hash_protocol public.

Submitted by Benoît Canet on Jan. 28, 2013, 1:22 p.m.

Details

Message ID 1359379338-5974-3-git-send-email-benoit@irqsave.net
State New
Headers show

Commit Message

Benoît Canet Jan. 28, 2013, 1:22 p.m.
Signed-off-by: Benoit Canet <benoit@irqsave.net>
---
 block.c               |    2 +-
 include/block/block.h |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Comments

Stefan Hajnoczi Jan. 28, 2013, 3:34 p.m.
On Mon, Jan 28, 2013 at 02:22:16PM +0100, Benoît Canet wrote:

s/hash/has/ in subject line.  Too much dedup for you :).

Patch hide | download patch | download mbox

diff --git a/block.c b/block.c
index af22ee8..3bebc74 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 "<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 4d83856..8bb47c4 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -121,6 +121,7 @@  bool bdrv_io_limits_enabled(BlockDriverState *bs);
 void bdrv_init(void);
 void bdrv_init_with_whitelist(void);
 BlockDriver *bdrv_find_protocol(const char *filename);
+int path_has_protocol(const char *path);
 BlockDriver *bdrv_find_format(const char *format_name);
 BlockDriver *bdrv_find_whitelisted_format(const char *format_name);
 int bdrv_create(BlockDriver *drv, const char* filename,