Commit d913829f authored by Orit Wasserman's avatar Orit Wasserman Committed by Juan Quintela
Browse files

Add QemuFileWritevBuffer QemuFileOps

This will allow us to write an iovec
Signed-off-by: default avatarOrit Wasserman <>
Reviewed-by: default avatarJuan Quintela <>
Signed-off-by: default avatarJuan Quintela <>
parent 5cc11c46
......@@ -51,11 +51,18 @@ typedef int (QEMUFileCloseFunc)(void *opaque);
typedef int (QEMUFileGetFD)(void *opaque);
* This function writes an iovec to file.
typedef ssize_t (QEMUFileWritevBufferFunc)(void *opaque, struct iovec *iov,
int iovcnt);
typedef struct QEMUFileOps {
QEMUFilePutBufferFunc *put_buffer;
QEMUFileGetBufferFunc *get_buffer;
QEMUFileCloseFunc *close;
QEMUFileGetFD *get_fd;
QEMUFileWritevBufferFunc *writev_buffer;
} QEMUFileOps;
QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment