aboutsummaryrefslogtreecommitdiff
path: root/iohandler.c
diff options
context:
space:
mode:
Diffstat (limited to 'iohandler.c')
-rw-r--r--iohandler.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/iohandler.c b/iohandler.c
index f2fc8a9bd6..623b55b9ec 100644
--- a/iohandler.c
+++ b/iohandler.c
@@ -63,7 +63,15 @@ void qemu_set_fd_handler(int fd,
{
iohandler_init();
aio_set_fd_handler(iohandler_ctx, fd, false,
- fd_read, fd_write, opaque);
+ fd_read, fd_write, NULL, opaque);
+}
+
+void event_notifier_set_handler(EventNotifier *e,
+ EventNotifierHandler *handler)
+{
+ iohandler_init();
+ aio_set_event_notifier(iohandler_ctx, e, false,
+ handler, NULL);
}
/* reaping of zombies. right now we're not passing the status to