]> git.proxmox.com Git - mirror_qemu.git/blobdiff - iohandler.c
target-ppc: Add xscmpoqp and xscmpuqp instructions
[mirror_qemu.git] / iohandler.c
index 3f23433b5a901efc26afa85d2e877dbd169e4215..623b55b9ecea96057d396e7ca28289edf0267e14 100644 (file)
@@ -44,6 +44,12 @@ static void iohandler_init(void)
     }
 }
 
+AioContext *iohandler_get_aio_context(void)
+{
+    iohandler_init();
+    return iohandler_ctx;
+}
+
 GSource *iohandler_get_g_source(void)
 {
     iohandler_init();
@@ -57,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