From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPq93-0002OB-JE for qemu-devel@nongnu.org; Wed, 10 Apr 2013 04:12:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPq92-0008Oh-7U for qemu-devel@nongnu.org; Wed, 10 Apr 2013 04:12:41 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:62021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPq91-0008Ob-TJ for qemu-devel@nongnu.org; Wed, 10 Apr 2013 04:12:40 -0400 Received: by mail-pd0-f182.google.com with SMTP id 3so131457pdj.41 for ; Wed, 10 Apr 2013 01:12:39 -0700 (PDT) Sender: Dong Xu Wang From: Dong Xu Wang Date: Wed, 10 Apr 2013 16:11:49 +0800 Message-Id: <1365581513-3475-3-git-send-email-wdongxu@linux.vnet.ibm.com> In-Reply-To: <1365581513-3475-1-git-send-email-wdongxu@linux.vnet.ibm.com> References: <1365581513-3475-1-git-send-email-wdongxu@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH V18 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: Dong Xu Wang , kwol@redhat.com, wdongxu@cn.ibm.com, stefanha@redhat.com We will use path_has_protocol outside block.c, so just make it public. Reviewed-by: Michael Roth Signed-off-by: Dong Xu Wang --- 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 ":" */ -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