From patchwork Thu May 30 10:00:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Wang X-Patchwork-Id: 247516 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 6C2662C0095 for ; Thu, 30 May 2013 20:03:06 +1000 (EST) Received: from localhost ([::1]:39885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhzhI-0007Oc-KS for incoming@patchwork.ozlabs.org; Thu, 30 May 2013 06:03:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhzfM-0004Bc-Q6 for qemu-devel@nongnu.org; Thu, 30 May 2013 06:01:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhzfF-0007Yk-Qi for qemu-devel@nongnu.org; Thu, 30 May 2013 06:01:04 -0400 Received: from mail-yh0-x235.google.com ([2607:f8b0:4002:c01::235]:41152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhzfF-0007Yg-Kz for qemu-devel@nongnu.org; Thu, 30 May 2013 06:00:57 -0400 Received: by mail-yh0-f53.google.com with SMTP id f64so5488yha.12 for ; Thu, 30 May 2013 03:00:57 -0700 (PDT) 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=7iEBzPazFKt9kRol1h127RDqPjJezup+vOUugmCnXwY=; b=GGTEb3FmkIdXfQWqBVlS7FCt+D8mdEeBmU1pS0Yf71RflcBUaNwmzTnU6qy7nLjtMZ kL/hxLYj1jFbt+6nvvh5ltLqtnzbdwqO0dOKHuWG8SO2nQUBp3MMH7GKXGtVPcbz/vk6 MdD9xu0xu2LSsd0SaDGDyjSARx4Iqmrl/o8JuBGhEZQUgHDKyC3EjGWXeRiRchV/RcOf qs+kFvak67mfOUYRuequPiAFjgmB2mF9Fs5SXg2oSpjp3oTH8l1R/xudtFJWMq+liBOF 2F9G5G/6t+xsK+GaM3hBdpuUNezl1jjxJ4hp3YFXJMF6eLfYhALmR+HLk1c/25zaKq0K eMQA== X-Received: by 10.236.122.147 with SMTP id t19mr3261537yhh.86.1369908057216; Thu, 30 May 2013 03:00:57 -0700 (PDT) Received: from 11.wdongxu.kvm58 ([202.108.130.153]) by mx.google.com with ESMTPSA id j64sm58764867yhj.25.2013.05.30.03.00.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 May 2013 03:00:56 -0700 (PDT) From: Dongxu Wang To: qemu-devel@nongnu.org Date: Thu, 30 May 2013 18:00:19 +0800 Message-Id: <1369908025-9556-3-git-send-email-wdongxu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1369908025-9556-1-git-send-email-wdongxu@linux.vnet.ibm.com> References: <1369908025-9556-1-git-send-email-wdongxu@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::235 Cc: kwolf@redhat.com, Dong Xu Wang , wdongxu@cn.ibm.com, stefanha@redhat.com Subject: [Qemu-devel] [PATCH V19 2/8] 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 From: Dong Xu Wang We will use path_has_protocol outside block.c, so just make it public. Reviewed-by: Michael Roth Signed-off-by: Dong Xu Wang Signed-off-by: Dongxu 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 710362f..5135044 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 90f95ef..fd776a1 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -345,6 +345,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);