Fix compatibility with QEMU aio_set_fd_handler signatures in 7.0 and < 2.9

This commit is contained in:
Vitaliy Filippov
2022-12-15 19:17:17 +03:00
parent 66f14ac019
commit 3f35744052
3 changed files with 38 additions and 6 deletions
+1
View File
@@ -24,6 +24,7 @@ typedef void VitastorIOHandler(void *opaque, long retval);
// QEMU
typedef void IOHandler(void *opaque);
// is_external and poll_fn are not required, but are here for compatibility
typedef void QEMUSetFDHandler(void *ctx, int fd, int is_external, IOHandler *fd_read, IOHandler *fd_write, void *poll_fn, void *opaque);
vitastor_c *vitastor_c_create_qemu(QEMUSetFDHandler *aio_set_fd_handler, void *aio_context,