From patchwork Fri Nov 23 08:02:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Wang X-Patchwork-Id: 201251 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 1B5452C008C for ; Fri, 23 Nov 2012 19:03:24 +1100 (EST) Received: from localhost ([::1]:43544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TboEM-0000I2-60 for incoming@patchwork.ozlabs.org; Fri, 23 Nov 2012 03:03:22 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TboDz-0008Vm-D2 for qemu-devel@nongnu.org; Fri, 23 Nov 2012 03:03:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TboDy-00067K-5j for qemu-devel@nongnu.org; Fri, 23 Nov 2012 03:02:59 -0500 Received: from mail-ie0-f173.google.com ([209.85.223.173]:57057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TboDy-00067F-1N for qemu-devel@nongnu.org; Fri, 23 Nov 2012 03:02:58 -0500 Received: by mail-ie0-f173.google.com with SMTP id e13so2772060iej.4 for ; Fri, 23 Nov 2012 00:02:57 -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=F3e1WP9IpsPPdMf0ZoVN89hWMKRtHgG+Mfsv9ZMlB5w=; b=lyZTp0DHWukHlcmhdTX7dZ1OQ01uueJjk8WMC8pRD2Dl/AX888Th4dtZp/8vaG2EQJ iBpdCPJHZs9GqzV2oTP6e70yhqTNI+9MIoNA4OpVguyDfehp/gz4FqjwS9H/XsqqrjtF BPHmP0x4k3rOlxluxMGyfq7kpGvAPH07Ec9wqn6hkY0ODE/FVfyM2jTeYlGn9OX+BuPn 0eG09VHh7LJztraNNEe7snGKfDNJ99HvRb6WCCyNDAdeXiQjgPiPsqPDbuDn/AdRvWlU qURxoZb8IoU4sA51CksMJIhiCBG/8FRvyDk81313S5UkF2QuLLrDlFJv7ySAaMOTE/sw BVKA== Received: by 10.50.140.103 with SMTP id rf7mr2799123igb.56.1353657777585; Fri, 23 Nov 2012 00:02:57 -0800 (PST) Received: from localhost.localdomain ([202.108.130.153]) by mx.google.com with ESMTPS id rd10sm3898632igb.1.2012.11.23.00.02.55 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Nov 2012 00:02:56 -0800 (PST) From: Dong Xu Wang To: qemu-devel@nongnu.org Date: Fri, 23 Nov 2012 16:02:33 +0800 Message-Id: <1353657757-21424-3-git-send-email-wdongxu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1353657757-21424-1-git-send-email-wdongxu@linux.vnet.ibm.com> References: <1353657757-21424-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.173 Cc: kwolf@redhat.com, Dong Xu Wang Subject: [Qemu-devel] [PATCH V16 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 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);