diff options
Diffstat (limited to 'testing/av_test.c')
-rw-r--r-- | testing/av_test.c | 16 |
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" |