From b8a83a4f79ca4cd0689117b119ffaa1a91b00d52 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 13 Sep 2010 18:06:11 +0200 Subject: cutils: qemu_iovec_copy and qemu_iovec_memset This adds two functions that work on QEMUIOVectors and will be used by the next qcow2 patches. Signed-off-by: Kevin Wolf --- qemu-common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qemu-common.h') diff --git a/qemu-common.h b/qemu-common.h index dfd3dc08a2..5544ffd8cf 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -278,11 +278,14 @@ typedef struct QEMUIOVector { void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint); void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov); void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len); +void qemu_iovec_copy(QEMUIOVector *dst, QEMUIOVector *src, uint64_t skip, + size_t size); void qemu_iovec_concat(QEMUIOVector *dst, QEMUIOVector *src, size_t size); void qemu_iovec_destroy(QEMUIOVector *qiov); void qemu_iovec_reset(QEMUIOVector *qiov); void qemu_iovec_to_buffer(QEMUIOVector *qiov, void *buf); void qemu_iovec_from_buffer(QEMUIOVector *qiov, const void *buf, size_t count); +void qemu_iovec_memset(QEMUIOVector *qiov, int c, size_t count); struct Monitor; typedef struct Monitor Monitor; -- cgit v1.2.3