From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIhyt-0000dx-3C for qemu-devel@nongnu.org; Thu, 21 Mar 2013 12:04:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIhyr-0005D0-4x for qemu-devel@nongnu.org; Thu, 21 Mar 2013 12:04:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIhyq-0005Cl-Qh for qemu-devel@nongnu.org; Thu, 21 Mar 2013 12:04:41 -0400 From: Orit Wasserman Date: Thu, 21 Mar 2013 18:05:32 +0200 Message-Id: <1363881940-27505-2-git-send-email-owasserm@redhat.com> In-Reply-To: <1363881940-27505-1-git-send-email-owasserm@redhat.com> References: <1363881940-27505-1-git-send-email-owasserm@redhat.com> Subject: [Qemu-devel] [PATCH v3 1/9] Add QemuFileWritevBuffer QemuFileOps List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Orit Wasserman , pbonzini@redhat.com, mst@redhat.com, chegu_vinod@hp.com, quintela@redhat.com This will allow us to write an iovec Signed-off-by: Orit Wasserman --- include/migration/qemu-file.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h index df81261..8d3da9b 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 int (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); -- 1.7.11.7