From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgVJq-0002zr-Vn for qemu-devel@nongnu.org; Thu, 06 Dec 2012 01:52:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgVJi-0006TG-9Y for qemu-devel@nongnu.org; Thu, 06 Dec 2012 01:52:26 -0500 Received: from mail-ie0-f178.google.com ([209.85.223.178]:63442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgVJi-0006TA-2t for qemu-devel@nongnu.org; Thu, 06 Dec 2012 01:52:18 -0500 Received: by mail-ie0-f178.google.com with SMTP id c12so9427553ieb.9 for ; Wed, 05 Dec 2012 22:52:17 -0800 (PST) Sender: Dong Xu Wang From: Dong Xu Wang Date: Thu, 6 Dec 2012 14:51:47 +0800 Message-Id: <1354776711-12449-3-git-send-email-wdongxu@linux.vnet.ibm.com> In-Reply-To: <1354776711-12449-1-git-send-email-wdongxu@linux.vnet.ibm.com> References: <1354776711-12449-1-git-send-email-wdongxu@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH V17 2/6] make path_has_protocol non static List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 e972a05..2b0329b 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 af3bdde..1757528 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); -- 1.7.1