]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/migration/qemu-file.h
migration: introduce set_blocking function in QEMUFileOps
[mirror_qemu.git] / include / migration / qemu-file.h
index 1934a64a64c5ac3caaa01b0313276a12e2ec7fef..2dea81f21e2fe8e0413a83d0e76543933d1551c6 100644 (file)
@@ -54,6 +54,10 @@ typedef int (QEMUFileCloseFunc)(void *opaque);
  */
 typedef int (QEMUFileGetFD)(void *opaque);
 
+/* Called to change the blocking mode of the file
+ */
+typedef int (QEMUFileSetBlocking)(void *opaque, bool enabled);
+
 /*
  * This function writes an iovec to file. The handler must write all
  * of the data or return a negative errno value.
@@ -107,6 +111,7 @@ typedef struct QEMUFileOps {
     QEMUFileGetBufferFunc *get_buffer;
     QEMUFileCloseFunc *close;
     QEMUFileGetFD *get_fd;
+    QEMUFileSetBlocking *set_blocking;
     QEMUFileWritevBufferFunc *writev_buffer;
     QEMURetPathFunc *get_return_path;
     QEMUFileShutdownFunc *shut_down;