summaryrefslogtreecommitdiffstats
path: root/include/block/block_int.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-03-08 13:47:46 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:49:38 -0600
commit65a1f4ccd2a79f0ede0c6d3bd8b42affffe12249 (patch)
treee0c00ba5f1ff3379ac11d24d3ba3283b6e2dfc6f /include/block/block_int.h
parent8defdce07cfddb7b9911400f5bae27f0ec91ca61 (diff)
downloadhqemu-65a1f4ccd2a79f0ede0c6d3bd8b42affffe12249.zip
hqemu-65a1f4ccd2a79f0ede0c6d3bd8b42affffe12249.tar.gz
block: Use BdrvChild in BlockBackend
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block/block_int.h')
-rw-r--r--include/block/block_int.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index bbf617a..c031db4 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -692,6 +692,11 @@ void backup_start(BlockDriverState *bs, BlockDriverState *target,
void hmp_drive_add_node(Monitor *mon, const char *optstr);
+BdrvChild *bdrv_root_attach_child(BlockDriverState *child_bs,
+ const char *child_name,
+ const BdrvChildRole *child_role);
+void bdrv_root_unref_child(BdrvChild *child);
+
void blk_set_bs(BlockBackend *blk, BlockDriverState *bs);
void blk_dev_change_media_cb(BlockBackend *blk, bool load);
OpenPOWER on IntegriCloud