[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V12 2/7] block export function path_has_protocol
From: |
Wenchao Xia |
Subject: |
[Qemu-devel] [PATCH V12 2/7] block export function path_has_protocol |
Date: |
Wed, 28 Nov 2012 16:55:30 +0800 |
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 <address@hidden>
---
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 "<protocol>:" */
-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
- [Qemu-devel] [PATCH V12 0/7] libqblock qemu block layer library, Wenchao Xia, 2012/11/28
- [Qemu-devel] [PATCH V12 2/7] block export function path_has_protocol,
Wenchao Xia <=
- [Qemu-devel] [PATCH V12 1/7] Build system clean tests directory clearly, Wenchao Xia, 2012/11/28
- [Qemu-devel] [PATCH V12 3/7] stubs add function qemu_set_fd_handler, Wenchao Xia, 2012/11/28
- [Qemu-devel] [PATCH V12 4/7] libqblock build system, Wenchao Xia, 2012/11/28
- [Qemu-devel] [PATCH V12 5/7] libqblock API design and type defines, Wenchao Xia, 2012/11/28
- [Qemu-devel] [PATCH V12 6/7] libqblock API implement, Wenchao Xia, 2012/11/28