diff options
| author | Gonglei | 2014-10-07 10:00:11 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2014-10-15 09:52:47 +0200 |
| commit | 12da30977813472b91f0ba1a69f9258bbe679b2e (patch) | |
| tree | 4be26e8aad5cd7ab68cd473d68831f91ed29db1c /include | |
| parent | bootindex: support to set a existent device's bootindex to -1 (diff) | |
| download | qemu-12da30977813472b91f0ba1a69f9258bbe679b2e.tar.gz qemu-12da30977813472b91f0ba1a69f9258bbe679b2e.tar.xz qemu-12da30977813472b91f0ba1a69f9258bbe679b2e.zip | |
bootindex: add a setter/getter functions wrapper for bootindex property
when we remove bootindex form qdev.property to qom.property,
we can use those functions set/get bootindex property for all
correlative devices. Meanwhile set the initial value of
bootindex to -1.
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/sysemu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index b3489be7ca..0037a695c1 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -215,6 +215,9 @@ char *get_boot_devices_list(size_t *size, bool ignore_suffixes); DeviceState *get_boot_device(uint32_t position); void check_boot_index(int32_t bootindex, Error **errp); void del_boot_device_path(DeviceState *dev, const char *suffix); +void device_add_bootindex_property(Object *obj, int32_t *bootindex, + const char *name, const char *suffix, + DeviceState *dev, Error **errp); QemuOpts *qemu_get_machine_opts(void); |
