mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
bootdevice: add Error **errp argument for qemu_boot_set()
It will be useful for checking when we change traditional boot order dynamically and propagate error message to the monitor. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
703008e81a
commit
f1839938b0
3 changed files with 17 additions and 13 deletions
|
@ -223,7 +223,7 @@ void validate_bootdevices(const char *devices, Error **errp);
|
|||
/* return 0 if success */
|
||||
typedef int QEMUBootSetHandler(void *opaque, const char *boot_order);
|
||||
void qemu_register_boot_set(QEMUBootSetHandler *func, void *opaque);
|
||||
int qemu_boot_set(const char *boot_order);
|
||||
void qemu_boot_set(const char *boot_order, Error **errp);
|
||||
|
||||
QemuOpts *qemu_get_machine_opts(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue