summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-22 15:20:33 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-24 23:36:50 +0100
commitf60900c4b813abbce213db6de217837645c6590e (patch)
tree02e9223f1627f1c647b42fa3f623b7354b6c6331 /testing
parent15cb4261665bab4ef02a5b1b9db48b9477c9b87a (diff)
Move ring buffer out of toxcore/util into toxav.
Toxcore itself doesn't use this data structure. Only toxav does, so now toxav owns the code for it.
Diffstat (limited to 'testing')
-rw-r--r--testing/av_test.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/av_test.c b/testing/av_test.c
index 02dc5f36..637fb9ac 100644
--- a/testing/av_test.c
+++ b/testing/av_test.c
@@ -22,6 +22,22 @@
22 * -lopencv_highgui -lopencv_imgproc -lsndfile -pthread -lvpx -lopus -lsodium -lportaudio 22 * -lopencv_highgui -lopencv_imgproc -lsndfile -pthread -lvpx -lopus -lsodium -lportaudio
23 */ 23 */
24 24
25// XXX: Hack because toxav doesn't really expose ring_buffer, but this av test
26// uses it. Not all of these functions are used, but when linking statically,
27// not renaming them will cause multiple definition errors, so we need to rename
28// all of them.
29#define RingBuffer TestRingBuffer
30#define rb_full test_rb_full
31#define rb_empty test_rb_empty
32#define rb_write test_rb_write
33#define rb_read test_rb_read
34#define rb_new test_rb_new
35#define rb_kill test_rb_kill
36#define rb_size test_rb_size
37#define rb_data test_rb_data
38#include "../toxav/ring_buffer.c"
39
40#include "../toxav/ring_buffer.h"
25#include "../toxav/toxav.h" 41#include "../toxav/toxav.h"
26#include "../toxcore/network.h" /* current_time_monotonic() */ 42#include "../toxcore/network.h" /* current_time_monotonic() */
27#include "../toxcore/tox.h" 43#include "../toxcore/tox.h"