2 * event notifier support
4 * Copyright Red Hat, Inc. 2010
7 * Michael S. Tsirkin <mst@redhat.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #ifndef QEMU_EVENT_NOTIFIER_H
14 #define QEMU_EVENT_NOTIFIER_H
21 struct EventNotifier
{
31 typedef void EventNotifierHandler(EventNotifier
*);
33 int event_notifier_init(EventNotifier
*, int active
);
34 void event_notifier_cleanup(EventNotifier
*);
35 int event_notifier_set(EventNotifier
*);
36 int event_notifier_test_and_clear(EventNotifier
*);
39 void event_notifier_init_fd(EventNotifier
*, int fd
);
40 int event_notifier_get_fd(const EventNotifier
*);
41 int event_notifier_get_wfd(const EventNotifier
*);
43 HANDLE
event_notifier_get_handle(EventNotifier
*);