From: Paolo Bonzini Date: Thu, 5 Jul 2012 15:16:24 +0000 (+0200) Subject: event_notifier: add event_notifier_init_fd X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~3873^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e80c262be7f821051a6d89b39fe21d951848dece;p=sdk%2Femulator%2Fqemu.git event_notifier: add event_notifier_init_fd Signed-off-by: Paolo Bonzini Signed-off-by: Avi Kivity --- diff --git a/event_notifier.c b/event_notifier.c index c339bfe..99c376c 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 #endif +void event_notifier_init_fd(EventNotifier *e, int fd) +{ + e->fd = fd; +} + int event_notifier_init(EventNotifier *e, int active) { #ifdef CONFIG_EVENTFD diff --git a/event_notifier.h b/event_notifier.h index 9b2edf4..fd3d942 100644 --- a/event_notifier.h +++ b/event_notifier.h @@ -16,9 +16,10 @@ #include "qemu-common.h" struct EventNotifier { - int fd; + int fd; }; +void event_notifier_init_fd(EventNotifier *, int fd); int event_notifier_init(EventNotifier *, int active); void event_notifier_cleanup(EventNotifier *); int event_notifier_get_fd(EventNotifier *);