From patchwork Thu Oct 25 13:36:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Wang X-Patchwork-Id: 194242 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 088B32C00AE for ; Fri, 26 Oct 2012 02:34:13 +1100 (EST) Received: from localhost ([::1]:54021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRNdc-0006VL-1z for incoming@patchwork.ozlabs.org; Thu, 25 Oct 2012 09:38:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRNck-0004MI-J0 for qemu-devel@nongnu.org; Thu, 25 Oct 2012 09:37:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRNce-0003DZ-RL for qemu-devel@nongnu.org; Thu, 25 Oct 2012 09:37:26 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:35073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRNce-0003Ce-LJ for qemu-devel@nongnu.org; Thu, 25 Oct 2012 09:37:20 -0400 Received: by mail-pb0-f45.google.com with SMTP id rp2so1923037pbb.4 for ; Thu, 25 Oct 2012 06:37:20 -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=K3IfGZMDEGKI3v/725cjkdQ4dWF0Q2q7raLwZIllWUQ=; b=x/OQgzmVj+9xi4LcUdm5JoPd57fXy/G2noe/fv4D0V4Fs+tPFZQ7uDeq+zEuepeMkF 64fU5KHWYz2SCROKun0O1gwGNvWjE48v64wkQT1i/uml0f9wx8edxh0U9ff6cws5zXKt 36PJdi2zYrO06MRQrG71FvtSdvojwPGhosbe9Zji2kcwxVXVn+EEXB3qgCq+OgZOxSgB EL9xJ5pswQIUSkTgfoaXgZsC/l7sKBnK12gVK7DuizZT70KqmmKsYPILLlUZ9i//yEYT ahc5a4BEnR/3VTXPylmWOaKhCoA7iML82Y2/sT/jkMVhzQ53kAkmpKTOvO0D9xtRjKXj dsJg== Received: by 10.66.75.168 with SMTP id d8mr53232506paw.63.1351172240269; Thu, 25 Oct 2012 06:37:20 -0700 (PDT) Received: from localhost.localdomain ([202.108.130.138]) by mx.google.com with ESMTPS id ix9sm11235269pbc.7.2012.10.25.06.37.17 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 06:37:19 -0700 (PDT) From: Dong Xu Wang To: qemu-devel@nongnu.org Date: Thu, 25 Oct 2012 21:36:40 +0800 Message-Id: <1351172204-29233-3-git-send-email-wdongxu@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1351172204-29233-1-git-send-email-wdongxu@linux.vnet.ibm.com> References: <1351172204-29233-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 V14 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 f639655..03ba485 100644 --- a/block.c +++ b/block.c @@ -198,7 +198,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 7842d85..364ba04 100644 --- a/block.h +++ b/block.h @@ -329,6 +329,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);