summaryrefslogtreecommitdiff
path: root/test/lv2_test_host.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-02-15 17:28:55 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-02-15 17:28:55 +0100
commit011264c9f5ad6af069ee1b58009cc7774a3f2463 (patch)
tree615bd4d5db365d10c1da0f5ba22ed61005a8b168 /test/lv2_test_host.cc
parentd55367b36d77e3fde7303bc17585a54e26f8b017 (diff)
Make lv2 unittest work with < lv2-1.10. Make LV2_PATH same as lv2 plugin installdir. Use pkg-config for lilv and serd dependencies.
Diffstat (limited to 'test/lv2_test_host.cc')
-rw-r--r--test/lv2_test_host.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/lv2_test_host.cc b/test/lv2_test_host.cc
index a6252b6..07685d0 100644
--- a/test/lv2_test_host.cc
+++ b/test/lv2_test_host.cc
@@ -151,9 +151,16 @@ LV2TestHost::Sequence::Sequence(void *buffer, size_t buffer_size)
seq->body.pad = 0;
}
+// Keep this to support atom extension from lv2 < 1.10
+static inline void
+_lv2_atom_sequence_clear(LV2_Atom_Sequence* seq)
+{
+ seq->atom.size = sizeof(LV2_Atom_Sequence_Body);
+}
+
void LV2TestHost::Sequence::clear()
{
- lv2_atom_sequence_clear(seq);
+ _lv2_atom_sequence_clear(seq);
}
// Keep this to support atom extension from lv2 < 1.10