From patchwork Fri Aug 10 15:39:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Wang X-Patchwork-Id: 176519 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 1D9342C00A3 for ; Sat, 11 Aug 2012 02:08:45 +1000 (EST) Received: from localhost ([::1]:35352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzrKr-0007h9-Qg for incoming@patchwork.ozlabs.org; Fri, 10 Aug 2012 11:41:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzrK6-0005er-JL for qemu-devel@nongnu.org; Fri, 10 Aug 2012 11:40:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzrK4-0006Xl-CD for qemu-devel@nongnu.org; Fri, 10 Aug 2012 11:40:26 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:55842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzrK4-0006Vk-5x for qemu-devel@nongnu.org; Fri, 10 Aug 2012 11:40:24 -0400 Received: by mail-pb0-f45.google.com with SMTP id rp12so2695987pbb.4 for ; Fri, 10 Aug 2012 08:40:23 -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=wHU9qwpTeGNr2+CbKmZtFgESQc6j3VMSi/LXB6J8UJ0=; b=OwSR7/BNs7UQKIyd8EVxwyGqshXNB1qGtKrA1tuzZgP6eLKzmK/Agu6MGeiwGYmoQh 0sW8doHGVfrXhS8kMz21pahZRpOhK7eBXivCgHnm4gJASrWgYfgHdvdFGdQAHp+MjzQi 0DtDchour3ahi75ugAHF+857rzs5R36AR0MbDMRKHowwffbZRcT7wdvu2DFpxMuj2yGt 4uVQzfGFMRW1DS/GuItXhEWzHHDUec5QL9ydLbi3w2IPeHHe35UnnNQWs0thVUaa8RTI RgKYejF3w8PzSpaU7uRRHnmpJ+CAYF39iLnZeMfYUn5XxYzNXHypmKcGU/YL9/EMDygG oWOg== Received: by 10.68.129.38 with SMTP id nt6mr98190pbb.76.1344613223674; Fri, 10 Aug 2012 08:40:23 -0700 (PDT) Received: from localhost.localdomain ([202.108.130.138]) by mx.google.com with ESMTPS id os2sm3557374pbc.16.2012.08.10.08.40.20 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Aug 2012 08:40:22 -0700 (PDT) From: Dong Xu Wang To: qemu-devel@nongnu.org Date: Fri, 10 Aug 2012 23:39:41 +0800 Message-Id: <1344613185-12308-3-git-send-email-wdongxu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1344613185-12308-1-git-send-email-wdongxu@linux.vnet.ibm.com> References: <1344613185-12308-1-git-send-email-wdongxu@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.45 Cc: kwolf@redhat.com, Dong Xu Wang Subject: [Qemu-devel] [PATCH V12 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 24323c1..c13d803 100644 --- a/block.c +++ b/block.c @@ -196,7 +196,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 650d872..54e61c9 100644 --- a/block.h +++ b/block.h @@ -307,6 +307,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);