Skip to content

Commit

Permalink
libqemustub: Add qemu_[un]register_reset() stubs
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
  • Loading branch information
ehabkost authored and afaerber committed Jan 8, 2013
1 parent 560c30b commit 41c6bcd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions stubs/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 13 additions & 0 deletions stubs/reset.c
Original file line number Diff line number Diff line change
@@ -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)
{
}

0 comments on commit 41c6bcd

Please sign in to comment.