From 011264c9f5ad6af069ee1b58009cc7774a3f2463 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 15 Feb 2015 17:28:55 +0100 Subject: Make lv2 unittest work with < lv2-1.10. Make LV2_PATH same as lv2 plugin installdir. Use pkg-config for lilv and serd dependencies. --- test/lv2_test_host.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3