aboutsummaryrefslogtreecommitdiff
path: root/sysemu.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-03-17 17:44:48 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-19 15:27:38 -0500
commit3b6304f706ef7eebc0b3b3f3a5093ec75448ee19 (patch)
tree963d3fe64dab594aacd2b89c1cb92315d836fc3f /sysemu.h
parent3af12c86d9db42c826dc9a7577b657543baf7fab (diff)
Add exit notifiers
Like atexit() but with state Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysemu.h b/sysemu.h
index 525efd13cb..bc33abfc9b 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -8,6 +8,7 @@
#include "qemu-timer.h"
#include "qdict.h"
#include "qerror.h"
+#include "notify.h"
#ifdef _WIN32
#include <windows.h>
@@ -73,6 +74,10 @@ int qemu_savevm_state_complete(Monitor *mon, QEMUFile *f);
void qemu_savevm_state_cancel(Monitor *mon, QEMUFile *f);
int qemu_loadvm_state(QEMUFile *f);
+void exit_notifier_add(Notifier *notifier);
+void exit_notifier_remove(Notifier *notifier);
+
+
#ifdef _WIN32
/* Polling handling */