diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-10-24 11:19:49 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-16 17:52:35 +0100 |
commit | 2f7b92a03f1e3813fc046d757138da519f4218d3 (patch) | |
tree | 11a0a98df19801bc6bb992d6d416bd9dbd96f474 /include/sysemu/reset.h | |
parent | 671ab4368a27401cff34cb74627332207f40cd54 (diff) | |
download | qemu-2f7b92a03f1e3813fc046d757138da519f4218d3.zip qemu-2f7b92a03f1e3813fc046d757138da519f4218d3.tar.gz qemu-2f7b92a03f1e3813fc046d757138da519f4218d3.tar.bz2 |
hw: move reset handlers from vl.c to hw/core
They are small, it is not worth stubbing them. Just include them
in user-mode emulators and unit tests as well.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/sysemu/reset.h')
-rw-r--r-- | include/sysemu/reset.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sysemu/reset.h b/include/sysemu/reset.h new file mode 100644 index 0000000..0b0d6d7 --- /dev/null +++ b/include/sysemu/reset.h @@ -0,0 +1,10 @@ +#ifndef QEMU_SYSEMU_RESET_H +#define QEMU_SYSEMU_RESET_H + +typedef void QEMUResetHandler(void *opaque); + +void qemu_register_reset(QEMUResetHandler *func, void *opaque); +void qemu_unregister_reset(QEMUResetHandler *func, void *opaque); +void qemu_devices_reset(void); + +#endif |