From 41bd13afdabf62ba513e00fade177749d73e1c09 Mon Sep 17 00:00:00 2001 From: aliguori Date: Fri, 17 Apr 2009 17:10:59 +0000 Subject: Add unregister_savevm() (Mark McLoughlin) Currently there's no way to unregister a savevm callback, so e.g. if a NIC is hot-unplugged and a savevm is issued, we'll segfault. Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7148 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/hw.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/hw.h') diff --git a/hw/hw.h b/hw/hw.h index e9628d4..d0cf598 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -239,6 +239,8 @@ int register_savevm_live(const char *idstr, LoadStateHandler *load_state, void *opaque); +void unregister_savevm(const char *idstr, void *opaque); + typedef void QEMUResetHandler(void *opaque); void qemu_register_reset(QEMUResetHandler *func, void *opaque); -- cgit v1.1