mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Move boot_set callback backend
Move registration function for the boot_set callback handler and provide qemu_boot_set so that it can also be used outside the monitor code. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
ef3adf68f8
commit
76e30d0f13
3 changed files with 25 additions and 20 deletions
5
hw/hw.h
5
hw/hw.h
|
@ -262,9 +262,10 @@ typedef void QEMUResetHandler(void *opaque);
|
|||
|
||||
void qemu_register_reset(QEMUResetHandler *func, void *opaque);
|
||||
|
||||
/* handler to set the boot_device for a specific type of QEMUMachine */
|
||||
/* 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_device);
|
||||
typedef int QEMUBootSetHandler(void *opaque, const char *boot_devices);
|
||||
void qemu_register_boot_set(QEMUBootSetHandler *func, void *opaque);
|
||||
int qemu_boot_set(const char *boot_devices);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue