mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Add an opaque parameter to boot_set API, move function to monitor.c
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4763 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3f05d3dc14
commit
3b4366de39
4 changed files with 17 additions and 16 deletions
5
hw/hw.h
5
hw/hw.h
|
@ -94,9 +94,8 @@ void qemu_register_reset(QEMUResetHandler *func, void *opaque);
|
|||
|
||||
/* handler to set the boot_device for a specific type of QEMUMachine */
|
||||
/* return 0 if success */
|
||||
typedef int QEMUBootSetHandler(const char *boot_device);
|
||||
extern QEMUBootSetHandler *qemu_boot_set_handler;
|
||||
void qemu_register_boot_set(QEMUBootSetHandler *func);
|
||||
typedef int QEMUBootSetHandler(void *opaque, const char *boot_device);
|
||||
void qemu_register_boot_set(QEMUBootSetHandler *func, void *opaque);
|
||||
|
||||
/* These should really be in isa.h, but are here to make pc.h happy. */
|
||||
typedef void (IOPortWriteFunc)(void *opaque, uint32_t address, uint32_t data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue