summaryrefslogtreecommitdiff
path: root/include/sysemu/block-backend.h
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2016-03-16 19:54:37 +0100
committerKevin Wolf <kwolf@redhat.com>2016-03-17 15:47:56 +0100
commite5e785500bf1ca286f9069bc13f3ed8cb2e9eb8a (patch)
tree2f057a2d398d1bc1f7bad01e211695a8f59e4f87 /include/sysemu/block-backend.h
parent2cf22d6a1a542b7775ba6945a0423b41325db45f (diff)
downloadqemu-e5e785500bf1ca286f9069bc13f3ed8cb2e9eb8a.tar.gz
qemu-e5e785500bf1ca286f9069bc13f3ed8cb2e9eb8a.tar.bz2
qemu-e5e785500bf1ca286f9069bc13f3ed8cb2e9eb8a.zip
blockdev: Separate BB name management
Introduce separate functions (monitor_add_blk() and monitor_remove_blk()) which set or unset a BB name. Since the name is equivalent to the monitor's reference to a BB, adding a name the same as declaring the BB to be monitor-owned and removing it revokes this status, hence the function names. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/sysemu/block-backend.h')
-rw-r--r--include/sysemu/block-backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h
index 84612cefc8..c906c209b1 100644
--- a/include/sysemu/block-backend.h
+++ b/include/sysemu/block-backend.h
@@ -71,6 +71,8 @@ void blk_remove_all_bs(void);
const char *blk_name(BlockBackend *blk);
BlockBackend *blk_by_name(const char *name);
BlockBackend *blk_next(BlockBackend *blk);
+bool monitor_add_blk(BlockBackend *blk, const char *name, Error **errp);
+void monitor_remove_blk(BlockBackend *blk);
BlockDriverState *blk_bs(BlockBackend *blk);
void blk_remove_bs(BlockBackend *blk);