libqemustub: Add qemu_[un]register_reset() stubs
This will be useful for code that don't call qemu_devices_reset() (e.g. *-user). If qemu_devices_reset() is never called, it means we don't need to keep track of the reset handler list. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
560c30b1db
commit
41c6bcd912
@ -5,4 +5,5 @@ stub-obj-y += fdset-get-fd.o
|
||||
stub-obj-y += fdset-remove-fd.o
|
||||
stub-obj-y += get-fd.o
|
||||
stub-obj-y += set-fd-handler.o
|
||||
stub-obj-y += reset.o
|
||||
stub-obj-$(CONFIG_WIN32) += fd-register.o
|
||||
|
13
stubs/reset.c
Normal file
13
stubs/reset.c
Normal file
@ -0,0 +1,13 @@
|
||||
#include "hw/hw.h"
|
||||
|
||||
/* Stub functions for binaries that never call qemu_devices_reset(),
|
||||
* and don't need to keep track of the reset handler list.
|
||||
*/
|
||||
|
||||
void qemu_register_reset(QEMUResetHandler *func, void *opaque)
|
||||
{
|
||||
}
|
||||
|
||||
void qemu_unregister_reset(QEMUResetHandler *func, void *opaque)
|
||||
{
|
||||
}
|
Loading…
Reference in New Issue
Block a user