diff options
author | David Robillard <d@drobilla.net> | 2012-03-03 21:03:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-03 21:03:41 +0000 |
commit | a91b37a822fe366be5a582953857cb29dead8a36 (patch) | |
tree | 08beb4593c233a4c935a9a256a98339d1f4558ac /tests | |
parent | 4742300f40eb8831ab36376fa7c18dcbc38b32da (diff) | |
download | sratom-a91b37a822fe366be5a582953857cb29dead8a36.tar.gz sratom-a91b37a822fe366be5a582953857cb29dead8a36.tar.bz2 sratom-a91b37a822fe366be5a582953857cb29dead8a36.zip |
Add forge sink and only require a URID_Unmap for writing.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4017 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sratom_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sratom_test.c b/tests/sratom_test.c index 52fca7c..db7be64 100644 --- a/tests/sratom_test.c +++ b/tests/sratom_test.c @@ -82,7 +82,7 @@ main() LV2_Atom_Forge forge; lv2_atom_forge_init(&forge, &map); - Sratom* sratom = sratom_new(&map, &unmap); + Sratom* sratom = sratom_new(&map); LV2_URID eg_Object = urid_map(NULL, "http://example.org/Object"); LV2_URID eg_one = urid_map(NULL, "http://example.org/a-one"); @@ -217,7 +217,7 @@ main() SerdNode s = serd_node_from_string(SERD_URI, USTR("http://example.org/obj")); SerdNode p = serd_node_from_string(SERD_URI, USTR(NS_RDF "value")); char* outstr = sratom_to_turtle( - sratom, &s, &p, obj->type, obj->size, LV2_ATOM_BODY(obj)); + sratom, &unmap, &s, &p, obj->type, obj->size, LV2_ATOM_BODY(obj)); printf("# Atom => Turtle\n\n%s", outstr); LV2_Atom* parsed = sratom_from_turtle(sratom, &s, &p, outstr); @@ -226,7 +226,7 @@ main() } char* instr = sratom_to_turtle( - sratom, &s, &p, parsed->type, parsed->size, LV2_ATOM_BODY(parsed)); + sratom, &unmap, &s, &p, parsed->type, parsed->size, LV2_ATOM_BODY(parsed)); printf("# Turtle => Atom\n\n%s", instr); if (strcmp(outstr, instr)) { |