From: Orit Wasserman Date: Fri, 22 Mar 2013 14:47:57 +0000 (+0200) Subject: Add QemuFileWritevBuffer QemuFileOps X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~2253^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d913829f0fd8451abcb1fd9d6dfce5586d9d7e10;p=sdk%2Femulator%2Fqemu.git Add QemuFileWritevBuffer QemuFileOps This will allow us to write an iovec Signed-off-by: Orit Wasserman Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h index df81261..8b8070f 100644 --- a/include/migration/qemu-file.h +++ b/include/migration/qemu-file.h @@ -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);