diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-10-07 13:59:06 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-10-20 13:41:26 +0200 |
commit | 18e46a033d67060c1430740cf8084b702955ae8f (patch) | |
tree | 23b97330842f6dff75096ba99718f96df3f891b9 /include/sysemu/blockdev.h | |
parent | 7e7d56d9e05b340290669442cfa05f5869204572 (diff) | |
download | qemu-18e46a033d67060c1430740cf8084b702955ae8f.zip qemu-18e46a033d67060c1430740cf8084b702955ae8f.tar.gz qemu-18e46a033d67060c1430740cf8084b702955ae8f.tar.bz2 |
block: Connect BlockBackend and DriveInfo
Make the BlockBackend own the DriveInfo. Change blockdev_init() to
return the BlockBackend instead of the DriveInfo.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/sysemu/blockdev.h')
-rw-r--r-- | include/sysemu/blockdev.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysemu/blockdev.h b/include/sysemu/blockdev.h index 09716de..c814a90 100644 --- a/include/sysemu/blockdev.h +++ b/include/sysemu/blockdev.h @@ -46,6 +46,10 @@ struct DriveInfo { QTAILQ_ENTRY(DriveInfo) next; }; +DriveInfo *blk_legacy_dinfo(BlockBackend *blk); +DriveInfo *blk_set_legacy_dinfo(BlockBackend *blk, DriveInfo *dinfo); +BlockBackend *blk_by_legacy_dinfo(DriveInfo *dinfo); + void override_max_devs(BlockInterfaceType type, int max_devs); DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit); |