]> git.proxmox.com Git - mirror_qemu.git/commit - io/channel-buffer.c
io: add QIOChannelBuffer class
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 15 Sep 2015 16:27:33 +0000 (17:27 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 18 Dec 2015 12:18:31 +0000 (12:18 +0000)
commitd98e4eb7de93290f7921b0dbe869c7dd3c567945
tree3f9d266d76b202a93b1bf7fd8a47affa4d521308
parent195e14d0262c5676cb9ff4b253e4b2b15c19d3f0
io: add QIOChannelBuffer class

Add a QIOChannel subclass that is capable of performing I/O
to/from a memory buffer. This implementation does not attempt
to support concurrent readers & writers. It is designed for
serialized access where by a single thread at a time may write
data, seek and then read data back out.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/io/channel-buffer.h [new file with mode: 0644]
io/Makefile.objs
io/channel-buffer.c [new file with mode: 0644]
tests/.gitignore
tests/Makefile
tests/test-io-channel-buffer.c [new file with mode: 0644]