summaryrefslogtreecommitdiffstats
path: root/tests/sratom_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-16 22:24:35 +0000
committerDavid Robillard <d@drobilla.net>2012-03-16 22:24:35 +0000
commit2577e671f25a4922c0218f24e813f2f4f232a075 (patch)
treec96b46ca244c8dfd872c1db517fbb2bb46c12cb6 /tests/sratom_test.c
parenta20303d251db7e31bcc69527c136649001495bc1 (diff)
downloadsratom-2577e671f25a4922c0218f24e813f2f4f232a075.tar.gz
sratom-2577e671f25a4922c0218f24e813f2f4f232a075.tar.bz2
sratom-2577e671f25a4922c0218f24e813f2f4f232a075.zip
Update for latest atom extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4073 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'tests/sratom_test.c')
-rw-r--r--tests/sratom_test.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/sratom_test.c b/tests/sratom_test.c
index c3eb70b..b13def9 100644
--- a/tests/sratom_test.c
+++ b/tests/sratom_test.c
@@ -135,8 +135,8 @@ main()
lv2_atom_forge_bool(&forge, false);
// eg_path = (Path)"/absolute/path"
- const uint8_t* pstr = (const uint8_t*)"/absolute/path";
- const size_t pstr_len = strlen((const char*)pstr);
+ const char* pstr = "/absolute/path";
+ const size_t pstr_len = strlen(pstr);
lv2_atom_forge_property_head(&forge, eg_path, 0);
lv2_atom_forge_path(&forge, pstr, pstr_len);
@@ -147,18 +147,18 @@ main()
// eg_string = (String)"hello"
lv2_atom_forge_property_head(&forge, eg_string, 0);
- lv2_atom_forge_string(&forge, (const uint8_t*)"hello", strlen("hello"));
+ lv2_atom_forge_string(&forge, "hello", strlen("hello"));
// eg_langlit = (Literal)"bonjour"@fr
lv2_atom_forge_property_head(&forge, eg_langlit, 0);
lv2_atom_forge_literal(
- &forge, (const uint8_t*)"bonjour", strlen("bonjour"),
+ &forge, "bonjour", strlen("bonjour"),
0, urid_map(NULL, "http://lexvo.org/id/iso639-3/fra"));
// eg_typelit = (Literal)"bonjour"@fr
lv2_atom_forge_property_head(&forge, eg_typelit, 0);
lv2_atom_forge_literal(
- &forge, (const uint8_t*)"value", strlen("value"),
+ &forge, "value", strlen("value"),
urid_map(NULL, "http://example.org/Type"), 0);
// eg_null = null
@@ -182,14 +182,14 @@ main()
lv2_atom_forge_property_head(&forge, eg_tuple, 0);
LV2_Atom_Forge_Frame tuple_frame;
lv2_atom_forge_tuple(&forge, &tuple_frame);
- lv2_atom_forge_string(&forge, (const uint8_t*)"foo", strlen("foo"));
+ lv2_atom_forge_string(&forge, "foo", strlen("foo"));
lv2_atom_forge_bool(&forge, true);
lv2_atom_forge_pop(&forge, &tuple_frame);
// eg_vector = (Vector<Int32>)1,2,3,4
lv2_atom_forge_property_head(&forge, eg_vector, 0);
int32_t elems[] = { 1, 2, 3, 4 };
- lv2_atom_forge_vector(&forge, 4, forge.Int32, sizeof(int32_t), elems);
+ 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");