Merge commit 'ca35f780ac4654bfa086613c72b011448afff327' into upstream-merge
[qemu-kvm/amd-iommu.git] / hw / event_notifier.h
blob24117ea97bf3a50425737aa325de70446ef3454f
1 #ifndef QEMU_EVENT_NOTIFIER_H
2 #define QEMU_EVENT_NOTIFIER_H
4 #include "qemu-common.h"
6 struct EventNotifier {
7 int fd;
8 };
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 *);
16 #endif