summaryrefslogtreecommitdiff
path: root/include/sysemu
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2015-10-26 21:39:05 +0100
committerKevin Wolf <kwolf@redhat.com>2015-11-11 16:22:46 +0100
commit1c95f7e1aff8417ff6e6cc23bc2d04fbcf79d37e (patch)
treeb3d39c2fdb23e362525c5d81421996a971c982ad /include/sysemu
parent9f4ed6fbd264a7c097590d830dcfd93996a80acb (diff)
downloadqemu-1c95f7e1aff8417ff6e6cc23bc2d04fbcf79d37e.tar.gz
block: Add blk_remove_bs()
This function removes the BlockDriverState associated with the given BlockBackend from that BB and sets the BDS pointer in the BB to NULL. Signed-off-by: Max Reitz <mreitz@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 9306a527bb..14a6d32bb2 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_remove_bs(BlockBackend *blk);
void blk_insert_bs(BlockBackend *blk, BlockDriverState *bs);
void blk_hide_on_behalf_of_hmp_drive_del(BlockBackend *blk);