Michael S. Tsirkin | 2292b33 | 2010-03-17 13:07:58 +0200 | [diff] [blame^] | 1 | #ifndef QEMU_EVENT_NOTIFIER_H |
2 | #define QEMU_EVENT_NOTIFIER_H | ||||
3 | |||||
4 | #include "qemu-common.h" | ||||
5 | |||||
6 | struct EventNotifier { | ||||
7 | int fd; | ||||
8 | }; | ||||
9 | |||||
10 | int event_notifier_init(EventNotifier *, int active); | ||||
11 | void event_notifier_cleanup(EventNotifier *); | ||||
12 | int event_notifier_get_fd(EventNotifier *); | ||||
13 | int event_notifier_test_and_clear(EventNotifier *); | ||||
14 | int event_notifier_test(EventNotifier *); | ||||
15 | |||||
16 | #endif |