diff options
| author | Dominik Dingel | 2013-04-26 04:12:49 +0200 |
|---|---|---|
| committer | Alexander Graf | 2013-04-26 20:18:24 +0200 |
| commit | 7dc5af5545bb72e1343cc959b3f0e5cdd8758f1f (patch) | |
| tree | fd4d335c9a8454fcb8fc617e4e5e79bcd785a0b6 /include | |
| parent | S390: CCW: Use new, working firmware by default (diff) | |
| download | qemu-7dc5af5545bb72e1343cc959b3f0e5cdd8758f1f.tar.gz qemu-7dc5af5545bb72e1343cc959b3f0e5cdd8758f1f.tar.xz qemu-7dc5af5545bb72e1343cc959b3f0e5cdd8758f1f.zip | |
Common: Add quick access to first boot device
Instead of manually parsing the boot_list as character stream,
we can access the nth boot device, specified by the position in the
boot order.
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/sysemu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 6578782fc3..43b961c0f6 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -181,6 +181,8 @@ void add_boot_device_path(int32_t bootindex, DeviceState *dev, const char *suffix); char *get_boot_devices_list(size_t *size); +DeviceState *get_boot_device(uint32_t position); + bool usb_enabled(bool default_usb); extern QemuOptsList qemu_drive_opts; |
