[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V18 2/6] make path_has_protocol non static
From: |
Dong Xu Wang |
Subject: |
[Qemu-devel] [PATCH V18 2/6] make path_has_protocol non static |
Date: |
Wed, 10 Apr 2013 16:11:49 +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 45e1d96..1e7dab5 100644
--- a/block.c
+++ b/block.c
@@ -193,7 +193,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 6e73277..7d34aa2 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -343,6 +343,7 @@ char *bdrv_snapshot_dump(char *buf, int buf_size,
QEMUSnapshotInfo *sn);
char *get_human_readable_size(char *buf, int buf_size, int64_t size);
int path_is_absolute(const char *path);
+int path_has_protocol(const char *path);
void path_combine(char *dest, int dest_size,
const char *base_path,
const char *filename);
--
1.7.11.7
- [Qemu-devel] [PATCH V18 0/6] add-cow file format, Dong Xu Wang, 2013/04/10
- [Qemu-devel] [PATCH V18 1/6] docs: document for add-cow file format, Dong Xu Wang, 2013/04/10
- [Qemu-devel] [PATCH V18 2/6] make path_has_protocol non static,
Dong Xu Wang <=
- [Qemu-devel] [PATCH V18 3/6] qed_read_string to bdrv_read_string, Dong Xu Wang, 2013/04/10
- [Qemu-devel] [PATCH V18 4/6] rename qcow2-cache.c to block-cache.c, Dong Xu Wang, 2013/04/10
- [Qemu-devel] [PATCH V18 5/6] add-cow file format core code., Dong Xu Wang, 2013/04/10
- [Qemu-devel] [PATCH V18 6/6] qemu-iotests: add add-cow iotests support, Dong Xu Wang, 2013/04/10
- Re: [Qemu-devel] [PATCH V18 0/6] add-cow file format, Stefan Hajnoczi, 2013/04/18