diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-01-28 11:21:44 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-01-31 11:17:07 +0100 |
commit | cb9ad44cff2dc365229e90a0aaa4cf0637c46a71 (patch) | |
tree | 29d846394839738805d94ae2647d46aec1980198 /blockdev.h | |
parent | 88d791e202127598cfd3221c819b504697656a52 (diff) | |
download | qemu-cb9ad44cff2dc365229e90a0aaa4cf0637c46a71.tar.gz qemu-cb9ad44cff2dc365229e90a0aaa4cf0637c46a71.tar.bz2 qemu-cb9ad44cff2dc365229e90a0aaa4cf0637c46a71.zip |
blockdev: New drive_get_by_index()
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 0c01e0801e..18278cc65d 100644 --- a/blockdev.h +++ b/blockdev.h @@ -39,6 +39,7 @@ struct DriveInfo { }; DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit); +DriveInfo *drive_get_by_index(BlockInterfaceType type, int index); int drive_get_max_bus(BlockInterfaceType type); DriveInfo *drive_get_next(BlockInterfaceType type); void drive_uninit(DriveInfo *dinfo); |