diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-01-28 11:21:37 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-01-31 10:24:11 +0100 |
commit | 13839974d14701626a2f9dcc5f8cf65783d51c11 (patch) | |
tree | 536cfb5745cf7b76304d7a01fec3d48befb59ec1 /blockdev.h | |
parent | 1869a65385e9d81f490b4203dd070cc49b7749c9 (diff) | |
download | qemu-13839974d14701626a2f9dcc5f8cf65783d51c11.tar.gz qemu-13839974d14701626a2f9dcc5f8cf65783d51c11.tar.bz2 qemu-13839974d14701626a2f9dcc5f8cf65783d51c11.zip |
blockdev: New drive_get_next(), replacing qdev_init_bdrv()
qdev_init_bdrv() doesn't belong into qdev.c; it's about drives, not
qdevs. Rename to drive_get_next, move to blockdev.c, drop the bogus
DeviceState argument, and return DriveInfo instead of
BlockDriverState.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.h')
-rw-r--r-- | blockdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/blockdev.h b/blockdev.h index b8a88bff26..3ed66348d3 100644 --- a/blockdev.h +++ b/blockdev.h @@ -36,6 +36,7 @@ struct DriveInfo { DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit); int drive_get_max_bus(BlockInterfaceType type); +DriveInfo *drive_get_next(BlockInterfaceType type); void drive_uninit(DriveInfo *dinfo); DriveInfo *drive_get_by_blockdev(BlockDriverState *bs); |