mirror of https://github.com/xemu-project/xemu.git
Revert "Add exit notifiers"
This reverts commit 3b6304f706
.
This was mistakenly committed.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8ec68b06bd
commit
365c4243ec
5
sysemu.h
5
sysemu.h
|
@ -8,7 +8,6 @@
|
|||
#include "qemu-timer.h"
|
||||
#include "qdict.h"
|
||||
#include "qerror.h"
|
||||
#include "notify.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
|
@ -74,10 +73,6 @@ 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 */
|
||||
|
||||
|
|
27
vl.c
27
vl.c
|
@ -154,7 +154,6 @@ int main(int argc, char **argv)
|
|||
#include "qemu-option.h"
|
||||
#include "qemu-config.h"
|
||||
#include "qemu-objects.h"
|
||||
#include "notify.h"
|
||||
|
||||
#include "disas.h"
|
||||
|
||||
|
@ -560,32 +559,6 @@ static int socket_init(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
/*********************/
|
||||
/* Exit notifiers */
|
||||
/*********************/
|
||||
|
||||
static NotifierList exit_notifiers = NOTIFIER_LIST_INITIALIZER(exit_notifiers);
|
||||
|
||||
void exit_notifier_add(Notifier *notifier)
|
||||
{
|
||||
notifier_list_add(&exit_notifiers, notifier);
|
||||
}
|
||||
|
||||
void exit_notifier_remove(Notifier *notifier)
|
||||
{
|
||||
notifier_list_remove(&exit_notifiers, notifier);
|
||||
}
|
||||
|
||||
static void exit_notifier_notify(void)
|
||||
{
|
||||
notifier_list_notify(&exit_notifiers);
|
||||
}
|
||||
|
||||
static void exit_notifier_init(void)
|
||||
{
|
||||
atexit(exit_notifier_notify);
|
||||
}
|
||||
|
||||
/***********************************************************/
|
||||
/* Bluetooth support */
|
||||
static int nb_hcis;
|
||||
|
|
Loading…
Reference in New Issue