From patchwork Thu Nov 1 09:23:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Wang X-Patchwork-Id: 196098 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 E382F2C0180 for ; Thu, 1 Nov 2012 20:23:59 +1100 (EST) Received: from localhost ([::1]:57922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTr0H-0004ml-M6 for incoming@patchwork.ozlabs.org; Thu, 01 Nov 2012 05:23:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTr03-0004gZ-95 for qemu-devel@nongnu.org; Thu, 01 Nov 2012 05:23:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTr02-0003IJ-8m for qemu-devel@nongnu.org; Thu, 01 Nov 2012 05:23:43 -0400 Received: from mail-da0-f45.google.com ([209.85.210.45]:43171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTr02-0003Hw-1j for qemu-devel@nongnu.org; Thu, 01 Nov 2012 05:23:42 -0400 Received: by mail-da0-f45.google.com with SMTP id n15so1044274dad.4 for ; Thu, 01 Nov 2012 02:23:41 -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=lf6OGfqixJ8E2Ccs8+VMPaOAibnAlyv+eCjpfgnKS80=; b=B6apuWJ7aaG2XL5SesSXxZ00wSdUNGhwXbPgYTP4NhClWhj0ZXlTVFUcg4IsF5KZL2 InesJ1VCND3veuY8iidDD9+myrBaN9yQKPIbIaWT1mB+g96tUBLB2Mq3bc6eRf1KwbYE UruOir2qap5kshL8Z1TqYblFqrkSySivltB2hN1nzcBDA9hbk8KIHhzJIFTXub4UUxYO sw/76nTad9XgfPyzgc+4J3bb9kGTZNAfSFl6RmcyxKt3PgpLj3CGCnfTHFkwCinmDBdc +xQyW92r91GJZXeH2CWOIFE4eit02cCulatcb8JYejMGooAshZGccg5sxRuX/fApRSW6 ji4A== Received: by 10.68.251.130 with SMTP id zk2mr1089715pbc.19.1351761821617; Thu, 01 Nov 2012 02:23:41 -0700 (PDT) Received: from localhost.localdomain ([202.108.130.138]) by mx.google.com with ESMTPS id b6sm3679258pav.33.2012.11.01.02.23.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Nov 2012 02:23:40 -0700 (PDT) From: Dong Xu Wang To: qemu-devel@nongnu.org Date: Thu, 1 Nov 2012 17:23:29 +0800 Message-Id: <1351761813-21044-3-git-send-email-wdongxu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1351761813-21044-1-git-send-email-wdongxu@linux.vnet.ibm.com> References: <1351761813-21044-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.210.45 Cc: kwolf@redhat.com, Dong Xu Wang Subject: [Qemu-devel] [PATCH V15 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 8d2e4fc..826a9ba 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);