summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-12-03 19:04:02 +0000
committerroot <root@ceth6.(none)>2014-12-22 14:39:21 +0800
commitddcd55316fb2851e144e719171621ad2816487dc (patch)
tree044aa422b6ce8b2a61d7b026ebb93a0c4e3a5bb2 /include
parent3b08098b409c0fb28f85436ba1adeb1d401ec8f7 (diff)
downloadqemu-ddcd55316fb2851e144e719171621ad2816487dc.tar.gz
bootdevice: add Error **errp argument for QEMUBootSetHandler
It will be useful for checking when we change traditional boot order dynamically and propagate error message to the monitor. For x86 architecture, we pass &local_err to set_boot_dev() when vm startup in pc_coms_init(). Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Alexander Graf <agraf@suse.de> Cc: Blue Swirl <blauwirbel@gmail.com> Cc: qemu-ppc@nongnu.org Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/sysemu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index ee7fee7726..503e5a48a7 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -220,8 +220,8 @@ void restore_boot_order(void *opaque);
void validate_bootdevices(const char *devices, Error **errp);
/* handler to set the boot_device order for a specific type of QEMUMachine */
-/* return 0 if success */
-typedef int QEMUBootSetHandler(void *opaque, const char *boot_order);
+typedef void QEMUBootSetHandler(void *opaque, const char *boot_order,
+ Error **errp);
void qemu_register_boot_set(QEMUBootSetHandler *func, void *opaque);
void qemu_boot_set(const char *boot_order, Error **errp);