block: Move declaration of bdrv_get_aio_context to block.h
authorFam Zheng <famz@redhat.com>
Thu, 15 May 2014 11:22:05 +0000 (19:22 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:12 +0000 (09:56 +0200)
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>
include/block/block.h
include/block/block_int.h

index 29ac56da2cb4ae70cac05966756b4e7b184dd65a..7d86e29cf4eda8339083616e0e54720f20327d4e 100644 (file)
@@ -565,6 +565,13 @@ int bdrv_debug_remove_breakpoint(BlockDriverState *bs, const char *tag);
 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:
  *
index 93ec86f3f7c553b23190bd190c890b3d2ba18f3d..8d58334c1d37782cc881eab572d565e7ba5296ff 100644 (file)
@@ -404,13 +404,6 @@ void bdrv_set_io_limits(BlockDriverState *bs,
 void bdrv_add_before_write_notifier(BlockDriverState *bs,
                                     NotifierWithReturn *notifier);
 
-/**
- * bdrv_get_aio_context:
- *
- * Returns: the currently bound #AioContext
- */
-AioContext *bdrv_get_aio_context(BlockDriverState *bs);
-
 /**
  * bdrv_detach_aio_context:
  *