qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, Dong Xu Wang <wdongxu@linux.vnet.ibm.com>,
	wdongxu@cn.ibm.com, stefanha@redhat.com
Subject: [Qemu-devel] [PATCH V20 2/8] make path_has_protocol non static
Date: Mon, 26 Aug 2013 00:06:14 +0800	[thread overview]
Message-ID: <1377446780-15360-3-git-send-email-wdongxu@linux.vnet.ibm.com> (raw)
In-Reply-To: <1377446780-15360-1-git-send-email-wdongxu@linux.vnet.ibm.com>

We will use path_has_protocol outside block.c, so just make it public.

Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
---
 block.c               | 2 +-
 include/block/block.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/block.c b/block.c
index fcc8870..b2711e9 100644
--- a/block.c
+++ b/block.c
@@ -189,7 +189,7 @@ static void bdrv_io_limits_intercept(BlockDriverState *bs,
 }
 
 /* check if the path starts with "<protocol>:" */
-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 476d168..f025185 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -343,6 +343,7 @@ void bdrv_img_create(const char *filename, const char *fmt,
 void bdrv_set_buffer_alignment(BlockDriverState *bs, int align);
 void *qemu_blockalign(BlockDriverState *bs, size_t size);
 bool bdrv_qiov_is_aligned(BlockDriverState *bs, QEMUIOVector *qiov);
+int path_has_protocol(const char *path);
 
 struct HBitmapIter;
 void bdrv_set_dirty_tracking(BlockDriverState *bs, int granularity);
-- 
1.7.11.7

  parent reply	other threads:[~2013-08-25 16:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-25 16:06 [Qemu-devel] [PATCH V20 0/7] add-cow file format Dong Xu Wang
2013-08-25 16:06 ` [Qemu-devel] [PATCH V20 1/8] docs: document for " Dong Xu Wang
2013-08-25 16:06 ` Dong Xu Wang [this message]
2013-08-25 16:06 ` [Qemu-devel] [PATCH V20 3/8] qed_read_string to bdrv_read_string Dong Xu Wang
2013-08-25 16:06 ` [Qemu-devel] [PATCH V20 4/8] rename qcow2_cache functions to block_cache Dong Xu Wang
2013-08-25 16:06 ` [Qemu-devel] [PATCH V20 5/8] move qcow2-cache.c to block-cache.c Dong Xu Wang
2013-08-25 16:06 ` [Qemu-devel] [PATCH V20 6/8] Make block-cache.c be common interface Dong Xu Wang
2013-08-25 16:06 ` [Qemu-devel] [PATCH V20 7/8] add-cow file format core code Dong Xu Wang
2013-08-25 16:06 ` [Qemu-devel] [PATCH V20 8/8] qemu-iotests: add add-cow iotests support Dong Xu Wang
2016-02-23 13:33 ` [Qemu-devel] [PATCH V20 0/7] add-cow file format Eric Blake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377446780-15360-3-git-send-email-wdongxu@linux.vnet.ibm.com \
    --to=wdongxu@linux.vnet.ibm.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=wdongxu@cn.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).