summaryrefslogtreecommitdiffstats
path: root/include/block/block.h
diff options
context:
space:
mode:
authorFam Zheng2014-05-15 13:22:05 +0200
committerStefan Hajnoczi2014-06-04 09:56:12 +0200
commitdb519cba8713fb49aa5233e8debe61dccdd3a57f (patch)
tree152e280577afef3f4ab085e36f4dbdd9429aafec /include/block/block.h
parentraw-posix: drop raw_get_aio_fd() since it is no longer used (diff)
downloadqemu-db519cba8713fb49aa5233e8debe61dccdd3a57f.tar.gz
qemu-db519cba8713fb49aa5233e8debe61dccdd3a57f.tar.xz
qemu-db519cba8713fb49aa5233e8debe61dccdd3a57f.zip
block: Move declaration of bdrv_get_aio_context to block.h
block_int.h is for block layer and block drivers, other code shouldn't include it. But similar to bdrv_set_aio_context, bdrv_get_aio_context should also be accessible from outside of block layer. Move it. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block/block.h')
-rw-r--r--include/block/block.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 29ac56da2c..7d86e29cf4 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -566,6 +566,13 @@ int bdrv_debug_resume(BlockDriverState *bs, const char *tag);
bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag);
/**
+ * bdrv_get_aio_context:
+ *
+ * Returns: the currently bound #AioContext
+ */
+AioContext *bdrv_get_aio_context(BlockDriverState *bs);
+
+/**
* bdrv_set_aio_context:
*
* Changes the #AioContext used for fd handlers, timers, and BHs by this