Statistics
| Branch: | Revision:

root / hw / event_notifier.h @ 1a1ea6f0

History | View | Annotate | Download (369 Bytes)

1 2292b339 Michael S. Tsirkin
#ifndef QEMU_EVENT_NOTIFIER_H
2 2292b339 Michael S. Tsirkin
#define QEMU_EVENT_NOTIFIER_H
3 2292b339 Michael S. Tsirkin
4 2292b339 Michael S. Tsirkin
#include "qemu-common.h"
5 2292b339 Michael S. Tsirkin
6 2292b339 Michael S. Tsirkin
struct EventNotifier {
7 2292b339 Michael S. Tsirkin
        int fd;
8 2292b339 Michael S. Tsirkin
};
9 2292b339 Michael S. Tsirkin
10 2292b339 Michael S. Tsirkin
int event_notifier_init(EventNotifier *, int active);
11 2292b339 Michael S. Tsirkin
void event_notifier_cleanup(EventNotifier *);
12 2292b339 Michael S. Tsirkin
int event_notifier_get_fd(EventNotifier *);
13 2292b339 Michael S. Tsirkin
int event_notifier_test_and_clear(EventNotifier *);
14 2292b339 Michael S. Tsirkin
int event_notifier_test(EventNotifier *);
15 2292b339 Michael S. Tsirkin
16 2292b339 Michael S. Tsirkin
#endif