aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/lv2plug.in/ns/ext
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-17 03:39:22 +0000
committerDavid Robillard <d@drobilla.net>2012-03-17 03:39:22 +0000
commitb9fb72a5b1344e6ebf232c575b6723f543a85891 (patch)
tree59fe2fb899a35eede7c966ccf0f99061b3740dab /lv2/lv2plug.in/ns/ext
parente6a03cf2be6f38ce6ccd960e66d7eac09061d958 (diff)
downloadlv2-b9fb72a5b1344e6ebf232c575b6723f543a85891.tar.xz
Update forge method names.
Diffstat (limited to 'lv2/lv2plug.in/ns/ext')
-rw-r--r--lv2/lv2plug.in/ns/ext/atom/atom-test.c10
-rw-r--r--lv2/lv2plug.in/ns/ext/atom/forge.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/lv2/lv2plug.in/ns/ext/atom/atom-test.c b/lv2/lv2plug.in/ns/ext/atom/atom-test.c
index 0fd1114..931fde1 100644
--- a/lv2/lv2plug.in/ns/ext/atom/atom-test.c
+++ b/lv2/lv2plug.in/ns/ext/atom/atom-test.c
@@ -95,7 +95,7 @@ main()
// eg_one = (Int)1
lv2_atom_forge_property_head(&forge, eg_one, 0);
LV2_Atom_Int* one = (LV2_Atom_Int*)lv2_atom_forge_deref(
- &forge, lv2_atom_forge_int32(&forge, 1));
+ &forge, lv2_atom_forge_int(&forge, 1));
if (one->body != 1) {
return test_fail("%d != 1\n", one->body);
}
@@ -103,7 +103,7 @@ main()
// eg_two = (Long)2
lv2_atom_forge_property_head(&forge, eg_two, 0);
LV2_Atom_Long* two = (LV2_Atom_Long*)lv2_atom_forge_deref(
- &forge, lv2_atom_forge_int64(&forge, 2));
+ &forge, lv2_atom_forge_long(&forge, 2));
if (two->body != 2) {
return test_fail("%ld != 2\n", two->body);
}
@@ -242,7 +242,7 @@ main()
&forge, lv2_atom_forge_vector_head(
&forge, &vec_frame, sizeof(int32_t), forge.Int));
for (unsigned i = 0; i < sizeof(elems) / sizeof(int32_t); ++i) {
- lv2_atom_forge_int32(&forge, elems[i]);
+ lv2_atom_forge_int(&forge, elems[i]);
}
lv2_atom_forge_pop(&forge, &vec_frame);
if (!lv2_atom_equals(&vector->atom, &vector2->atom)) {
@@ -255,9 +255,9 @@ main()
LV2_Atom_Sequence* seq = (LV2_Atom_Sequence*)lv2_atom_forge_deref(
&forge, lv2_atom_forge_sequence_head(&forge, &seq_frame, 0));
lv2_atom_forge_frame_time(&forge, 0);
- lv2_atom_forge_int32(&forge, 1);
+ lv2_atom_forge_int(&forge, 1);
lv2_atom_forge_frame_time(&forge, 1);
- lv2_atom_forge_int32(&forge, 2);
+ lv2_atom_forge_int(&forge, 2);
lv2_atom_forge_pop(&forge, &seq_frame);
lv2_atom_forge_pop(&forge, &obj_frame);
diff --git a/lv2/lv2plug.in/ns/ext/atom/forge.h b/lv2/lv2plug.in/ns/ext/atom/forge.h
index 941f033..322e14e 100644
--- a/lv2/lv2plug.in/ns/ext/atom/forge.h
+++ b/lv2/lv2plug.in/ns/ext/atom/forge.h
@@ -326,7 +326,7 @@ lv2_atom_forge_primitive(LV2_Atom_Forge* forge, const LV2_Atom* a)
/** Write an atom:Int. */
static inline LV2_Atom_Forge_Ref
-lv2_atom_forge_int32(LV2_Atom_Forge* forge, int32_t val)
+lv2_atom_forge_int(LV2_Atom_Forge* forge, int32_t val)
{
const LV2_Atom_Int a = { { sizeof(val), forge->Int }, val };
return lv2_atom_forge_primitive(forge, &a.atom);
@@ -334,7 +334,7 @@ lv2_atom_forge_int32(LV2_Atom_Forge* forge, int32_t val)
/** Write an atom:Long. */
static inline LV2_Atom_Forge_Ref
-lv2_atom_forge_int64(LV2_Atom_Forge* forge, int64_t val)
+lv2_atom_forge_long(LV2_Atom_Forge* forge, int64_t val)
{
const LV2_Atom_Long a = { { sizeof(val), forge->Long }, val };
return lv2_atom_forge_primitive(forge, &a.atom);