aboutsummaryrefslogtreecommitdiffstats
path: root/qemu-aio.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-aio.h')
-rw-r--r--qemu-aio.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu-aio.h b/qemu-aio.h
index f262344..c49bef7 100644
--- a/qemu-aio.h
+++ b/qemu-aio.h
@@ -20,6 +20,11 @@
/* Returns 1 if there are still outstanding AIO requests; 0 otherwise */
typedef int (AioFlushHandler)(void *opaque);
+/* Runs all currently allowed AIO callbacks of completed requests in the
+ * respective AIO backend. Returns 0 if no requests was handled, non-zero
+ * if at least one queued request was handled. */
+typedef int (AioProcessQueue)(void *opaque);
+
/* Flush any pending AIO operation. This function will block until all
* outstanding AIO operations have been completed or cancelled. */
void qemu_aio_flush(void);