From patchwork Thu Dec 6 06:51:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Wang X-Patchwork-Id: 204153 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6338B2C0180 for ; Thu, 6 Dec 2012 17:52:48 +1100 (EST) Received: from localhost ([::1]:35474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgVKA-00038v-H8 for incoming@patchwork.ozlabs.org; Thu, 06 Dec 2012 01:52:46 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=LcEGh+OxJ4pwFAkTzeqSNPJGXTgoUQ2M/uVy5IGtf5k=; b=x+zxjbw5nhbTFIYRP/xfkPoakVtLJlqCVwUBfgIY4pPLETllMwbd3g2hjyZ+qGX4iD v2V9INakxauh/iB2eG16YbBCJIVKh/VNbRyl0J8w0WqHlcIlFv5W3Hj143QnrE/YYP9X tZ5LS5vLKEgTEQBel1CVQgmXAH4Zuu0Dlmq+bAicMiKoh+B5hOsAh3cgpYdQVhCr+cRy F6/SlsmEswUhL8WmwzdEvBM6t0ghVBgPu4HXXzE3MMEID7kGRgEyhmhF+5S8Amk9J7n+ Ibv+Iqodk3A7jBFCMQhRDrXz0m4EwMAuCWu7ShEtP2b/vIiYSG1eH9SHx5RRDFAPWZuK D4ng== Received: by 10.50.6.136 with SMTP id b8mr4814376iga.54.1354776737363; Wed, 05 Dec 2012 22:52:17 -0800 (PST) Received: from localhost.localdomain ([202.108.130.153]) by mx.google.com with ESMTPS id uj11sm14890561igb.15.2012.12.05.22.52.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Dec 2012 22:52:16 -0800 (PST) From: Dong Xu Wang To: qemu-devel@nongnu.org Date: Thu, 6 Dec 2012 14:51:47 +0800 Message-Id: <1354776711-12449-3-git-send-email-wdongxu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.223.178 Cc: kwolf@redhat.com, Dong Xu Wang Subject: [Qemu-devel] [PATCH V17 2/6] make path_has_protocol non static X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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);