chiark / gitweb /
shared: add ring buffer
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 13 May 2014 18:08:18 +0000 (20:08 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 13 May 2014 20:08:13 +0000 (22:08 +0200)
commite0dd92729e68e0005866a890d8209ddcf3568805
tree40e05cc1ee7745174a1ea43f8a0b5ecd8ed972de
parent625e870b4fb7ff4caf4d8a4614e9bda7c174b291
shared: add ring buffer

New "struct ring" object that implements a basic ring buffer for arbitrary
byte-streams. A new basic runtime test is also added.

This will be needed for our pty helpers for systemd-console and friends.
.gitignore
Makefile.am
src/shared/ring.c [new file with mode: 0644]
src/shared/ring.h [new file with mode: 0644]
src/test/test-ring.c [new file with mode: 0644]