mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
76ef2cf549
commit
db519cba87
|
@ -565,6 +565,13 @@ int bdrv_debug_remove_breakpoint(BlockDriverState *bs, const char *tag);
|
||||||
int bdrv_debug_resume(BlockDriverState *bs, const char *tag);
|
int bdrv_debug_resume(BlockDriverState *bs, const char *tag);
|
||||||
bool bdrv_debug_is_suspended(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:
|
* bdrv_set_aio_context:
|
||||||
*
|
*
|
||||||
|
|
|
@ -404,13 +404,6 @@ void bdrv_set_io_limits(BlockDriverState *bs,
|
||||||
void bdrv_add_before_write_notifier(BlockDriverState *bs,
|
void bdrv_add_before_write_notifier(BlockDriverState *bs,
|
||||||
NotifierWithReturn *notifier);
|
NotifierWithReturn *notifier);
|
||||||
|
|
||||||
/**
|
|
||||||
* bdrv_get_aio_context:
|
|
||||||
*
|
|
||||||
* Returns: the currently bound #AioContext
|
|
||||||
*/
|
|
||||||
AioContext *bdrv_get_aio_context(BlockDriverState *bs);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bdrv_detach_aio_context:
|
* bdrv_detach_aio_context:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue