Statistics
| Branch: | Revision:

root / event_notifier.h @ 2ec10b95

History | View | Annotate | Download (666 Bytes)

1 6b620ca3 Paolo Bonzini
/*
2 6b620ca3 Paolo Bonzini
 * event notifier support
3 6b620ca3 Paolo Bonzini
 *
4 6b620ca3 Paolo Bonzini
 * Copyright Red Hat, Inc. 2010
5 6b620ca3 Paolo Bonzini
 *
6 6b620ca3 Paolo Bonzini
 * Authors:
7 6b620ca3 Paolo Bonzini
 *  Michael S. Tsirkin <mst@redhat.com>
8 6b620ca3 Paolo Bonzini
 *
9 6b620ca3 Paolo Bonzini
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 6b620ca3 Paolo Bonzini
 * See the COPYING file in the top-level directory.
11 6b620ca3 Paolo Bonzini
 */
12 6b620ca3 Paolo Bonzini
13 2292b339 Michael S. Tsirkin
#ifndef QEMU_EVENT_NOTIFIER_H
14 2292b339 Michael S. Tsirkin
#define QEMU_EVENT_NOTIFIER_H
15 2292b339 Michael S. Tsirkin
16 2292b339 Michael S. Tsirkin
#include "qemu-common.h"
17 2292b339 Michael S. Tsirkin
18 2292b339 Michael S. Tsirkin
struct EventNotifier {
19 2292b339 Michael S. Tsirkin
        int fd;
20 2292b339 Michael S. Tsirkin
};
21 2292b339 Michael S. Tsirkin
22 2292b339 Michael S. Tsirkin
int event_notifier_init(EventNotifier *, int active);
23 2292b339 Michael S. Tsirkin
void event_notifier_cleanup(EventNotifier *);
24 2292b339 Michael S. Tsirkin
int event_notifier_get_fd(EventNotifier *);
25 2ec10b95 Paolo Bonzini
int event_notifier_set(EventNotifier *);
26 2292b339 Michael S. Tsirkin
int event_notifier_test_and_clear(EventNotifier *);
27 2292b339 Michael S. Tsirkin
int event_notifier_test(EventNotifier *);
28 2292b339 Michael S. Tsirkin
29 2292b339 Michael S. Tsirkin
#endif