summaryrefslogtreecommitdiffstats
path: root/include/sysemu
diff options
context:
space:
mode:
authorMax Reitz2015-10-19 17:53:28 +0200
committerKevin Wolf2015-10-23 18:18:23 +0200
commit0c3c36d651922ebe9244e68e6d9ed14cdfcac9fd (patch)
tree5a18a67b49fb203a9712189094387818c6562897 /include/sysemu
parentblock: Prepare remaining BB functions for NULL BDS (diff)
downloadqemu-0c3c36d651922ebe9244e68e6d9ed14cdfcac9fd.tar.gz
qemu-0c3c36d651922ebe9244e68e6d9ed14cdfcac9fd.tar.xz
qemu-0c3c36d651922ebe9244e68e6d9ed14cdfcac9fd.zip
block: Add blk_insert_bs()
This function associates the given BlockDriverState with the given BlockBackend. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/block-backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h
index 52e35a1491..9306a527bb 100644
--- a/include/sysemu/block-backend.h
+++ b/include/sysemu/block-backend.h
@@ -72,6 +72,7 @@ BlockBackend *blk_by_name(const char *name);
BlockBackend *blk_next(BlockBackend *blk);
BlockDriverState *blk_bs(BlockBackend *blk);
+void blk_insert_bs(BlockBackend *blk, BlockDriverState *bs);
void blk_hide_on_behalf_of_hmp_drive_del(BlockBackend *blk);