From patchwork Fri Nov 23 08:02:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [V16,2/6] make path_has_protocol non static Date: Thu, 22 Nov 2012 22:02:33 -0000 From: Robert Wang X-Patchwork-Id: 201251 Message-Id: <1353657757-21424-3-git-send-email-wdongxu@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, Dong Xu Wang We will use path_has_protocol outside block.c, so just make it public. Signed-off-by: Dong Xu Wang Reviewed-by: Michael Roth --- block.c | 2 +- block.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index 7d5d628..6b57611 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 ":" */ -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 3292de7..fcf392b 100644 --- a/block.h +++ b/block.h @@ -333,6 +333,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);