From e0dd92729e68e0005866a890d8209ddcf3568805 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Tue, 13 May 2014 20:08:18 +0200 Subject: 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. --- Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index c54d35760d..653fcfcdae 100644 --- a/Makefile.am +++ b/Makefile.am @@ -801,6 +801,8 @@ libsystemd_shared_la_SOURCES = \ src/shared/clean-ipc.c \ src/shared/login-shared.c \ src/shared/login-shared.h \ + src/shared/ring.c \ + src/shared/ring.h \ src/shared/async.c \ src/shared/async.h @@ -1198,6 +1200,7 @@ tests += \ test-utf8 \ test-ellipsize \ test-util \ + test-ring \ test-tmpfiles \ test-namespace \ test-date \ @@ -1325,6 +1328,12 @@ test_util_SOURCES = \ test_util_LDADD = \ libsystemd-core.la +test_ring_SOURCES = \ + src/test/test-ring.c + +test_ring_LDADD = \ + libsystemd-core.la + test_tmpfiles_SOURCES = \ src/test/test-tmpfiles.c -- cgit v1.2.3-54-g00ecf