diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-07-05 17:16:24 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-07-12 14:08:03 +0300 |
commit | e80c262be7f821051a6d89b39fe21d951848dece (patch) | |
tree | 48439495c58cd56c3df4fe8aaf6cfed2193d0b79 /event_notifier.c | |
parent | ebe7acea532fba4a0ad7aaf74e59bff729867d93 (diff) |
event_notifier: add event_notifier_init_fd
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'event_notifier.c')
-rw-r--r-- | event_notifier.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/event_notifier.c b/event_notifier.c index c339bfee50..99c376c6a3 100644 --- a/event_notifier.c +++ b/event_notifier.c @@ -10,11 +10,18 @@ * See the COPYING file in the top-level directory. */ +#include "qemu-common.h" #include "event_notifier.h" + #ifdef CONFIG_EVENTFD #include <sys/eventfd.h> #endif +void event_notifier_init_fd(EventNotifier *e, int fd) +{ + e->fd = fd; +} + int event_notifier_init(EventNotifier *e, int active) { #ifdef CONFIG_EVENTFD |