console: remove DisplayAllocator
[qemu/opensuse.git] / event_notifier.h
blobf0ec2f2171bb09bdb4f36121805015392f98045d
1 /*
2 * event notifier support
4 * Copyright Red Hat, Inc. 2010
6 * Authors:
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
16 #include "qemu-common.h"
18 struct EventNotifier {
19 int fd;
22 typedef void EventNotifierHandler(EventNotifier *);
24 void event_notifier_init_fd(EventNotifier *, int fd);
25 int event_notifier_init(EventNotifier *, int active);
26 void event_notifier_cleanup(EventNotifier *);
27 int event_notifier_get_fd(EventNotifier *);
28 int event_notifier_set(EventNotifier *);
29 int event_notifier_test_and_clear(EventNotifier *);
30 int event_notifier_set_handler(EventNotifier *, EventNotifierHandler *);
32 #endif