]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/sysemu/sysemu.h
bootdevice: move code about bootorder from vl.c to bootdevice.c
[mirror_qemu.git] / include / sysemu / sysemu.h
index 9fea3bc3af406c085bc49f4ad3741861eab201e9..84798efd72e6b142f1943c52a5c898c0b68124fa 100644 (file)
@@ -216,6 +216,14 @@ 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);
+void restore_boot_order(void *opaque);
+void validate_bootdevices(const char *devices);
+
+/* 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);
+void qemu_register_boot_set(QEMUBootSetHandler *func, void *opaque);
+int qemu_boot_set(const char *boot_order);
 
 QemuOpts *qemu_get_machine_opts(void);