diff options
author | David Robillard <d@drobilla.net> | 2012-04-12 23:47:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-12 23:47:14 +0000 |
commit | cb35f7aa4a179673598c77282390d9a4084f6f2a (patch) | |
tree | d959d1673afe76efebf4b4406c226677e2865078 /tests | |
parent | f3b37538c6355ca2f878dafeaf322312dd742e59 (diff) | |
download | sratom-cb35f7aa4a179673598c77282390d9a4084f6f2a.tar.gz sratom-cb35f7aa4a179673598c77282390d9a4084f6f2a.tar.bz2 sratom-cb35f7aa4a179673598c77282390d9a4084f6f2a.zip |
Use URI defines from LV2 headers where possible.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4175 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sratom_test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/sratom_test.c b/tests/sratom_test.c index f992153..3f7cf17 100644 --- a/tests/sratom_test.c +++ b/tests/sratom_test.c @@ -22,8 +22,7 @@ #include "lv2/lv2plug.in/ns/ext/atom/util.h" #include "sratom/sratom.h" -#define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" -#define NS_MIDI "http://lv2plug.in/ns/ext/midi#" +#define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" #define USTR(s) ((const uint8_t*)(s)) @@ -199,7 +198,7 @@ main() lv2_atom_forge_vector(&forge, 4, forge.Int, sizeof(int32_t), elems); // eg_seq = (Sequence)1, 2 - LV2_URID midi_midiEvent = map.map(map.handle, NS_MIDI "MidiEvent"); + LV2_URID midi_midiEvent = map.map(map.handle, LV2_MIDI__MidiEvent); lv2_atom_forge_property_head(&forge, eg_seq, 0); LV2_Atom_Forge_Frame seq_frame; lv2_atom_forge_sequence_head(&forge, &seq_frame, 0); |