diff options
author | Orit Wasserman <owasserm@redhat.com> | 2013-03-22 16:47:57 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-03-26 13:32:33 +0100 |
commit | d913829f0fd8451abcb1fd9d6dfce5586d9d7e10 (patch) | |
tree | 90fa25b6a6ae189ce801b2f3674b0b2ce471a9e6 /include/migration | |
parent | 5cc11c46cf187c7d5306b68e730ec0d372cd7ef0 (diff) | |
download | hqemu-d913829f0fd8451abcb1fd9d6dfce5586d9d7e10.zip hqemu-d913829f0fd8451abcb1fd9d6dfce5586d9d7e10.tar.gz |
Add QemuFileWritevBuffer QemuFileOps
This will allow us to write an iovec
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/qemu-file.h | 7 |
1 files changed, 7 insertions, 0 deletions
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); |