Revision 3b6304f7 vl.c
b/vl.c | ||
---|---|---|
150 | 150 |
#include "qemu-option.h" |
151 | 151 |
#include "qemu-config.h" |
152 | 152 |
#include "qemu-objects.h" |
153 |
#include "notify.h" |
|
153 | 154 |
|
154 | 155 |
#include "disas.h" |
155 | 156 |
|
... | ... | |
553 | 554 |
} |
554 | 555 |
#endif |
555 | 556 |
|
557 |
/*********************/ |
|
558 |
/* Exit notifiers */ |
|
559 |
/*********************/ |
|
560 |
|
|
561 |
static NotifierList exit_notifiers = NOTIFIER_LIST_INITIALIZER(exit_notifiers); |
|
562 |
|
|
563 |
void exit_notifier_add(Notifier *notifier) |
|
564 |
{ |
|
565 |
notifier_list_add(&exit_notifiers, notifier); |
|
566 |
} |
|
567 |
|
|
568 |
void exit_notifier_remove(Notifier *notifier) |
|
569 |
{ |
|
570 |
notifier_list_remove(&exit_notifiers, notifier); |
|
571 |
} |
|
572 |
|
|
573 |
static void exit_notifier_notify(void) |
|
574 |
{ |
|
575 |
notifier_list_notify(&exit_notifiers); |
|
576 |
} |
|
577 |
|
|
578 |
static void exit_notifier_init(void) |
|
579 |
{ |
|
580 |
atexit(exit_notifier_notify); |
|
581 |
} |
|
582 |
|
|
556 | 583 |
/***********************************************************/ |
557 | 584 |
/* Bluetooth support */ |
558 | 585 |
static int nb_hcis; |
Also available in: Unified diff