diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 17:17:52 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-26 17:17:52 +0000 |
commit | 249aa745fb133be47d3fea1cdecec55af7589919 (patch) | |
tree | 446b9a11fab7ca27a7da9adc3a8a010553a9c37e /qemu-common.h | |
parent | 28c699a2b650caa3bf7410b7960198572c9ddf3c (diff) |
qemu iovec: keep track of total size, allow partial copies (Gerd Hoffman)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6448 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-common.h b/qemu-common.h index ae773e05db..42d5e4966e 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -195,13 +195,14 @@ typedef struct QEMUIOVector { struct iovec *iov; int niov; int nalloc; + size_t size; } QEMUIOVector; void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint); void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len); void qemu_iovec_destroy(QEMUIOVector *qiov); void qemu_iovec_to_buffer(QEMUIOVector *qiov, void *buf); -void qemu_iovec_from_buffer(QEMUIOVector *qiov, const void *buf); +void qemu_iovec_from_buffer(QEMUIOVector *qiov, const void *buf, size_t count); #endif /* dyngen-exec.h hack */ |