mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
Add exit notifiers
Like atexit() but with state Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3af12c86d9
commit
3b6304f706
2 changed files with 32 additions and 0 deletions
5
sysemu.h
5
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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue