blob: 886222cb36a8cf59e08faf16cc758f422f0fbcb1 [file] [log] [blame]
Paolo Bonzini6b620ca2012-01-13 17:44:23 +01001/*
2 * event notifier support
3 *
4 * Copyright Red Hat, Inc. 2010
5 *
6 * Authors:
7 * Michael S. Tsirkin <mst@redhat.com>
8 *
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.
11 */
12
Michael S. Tsirkin2292b332010-03-17 13:07:58 +020013#ifndef QEMU_EVENT_NOTIFIER_H
14#define QEMU_EVENT_NOTIFIER_H
15
16#include "qemu-common.h"
17
18struct EventNotifier {
19 int fd;
20};
21
22int event_notifier_init(EventNotifier *, int active);
23void event_notifier_cleanup(EventNotifier *);
24int event_notifier_get_fd(EventNotifier *);
25int event_notifier_test_and_clear(EventNotifier *);
26int event_notifier_test(EventNotifier *);
27
28#endif