aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/lv2plug.in/ns
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-08 05:12:38 +0000
committerDavid Robillard <d@drobilla.net>2012-02-08 05:12:38 +0000
commit1f8a65dc5a5b151bd82e92830a59d2e82f9d8b15 (patch)
tree18af8d555bd37bfa797374390aeb035e33cc3eaa /lv2/lv2plug.in/ns
parented78bbe5ba12be1f9bcc736f14c51da6b4f639f3 (diff)
downloadlv2-1f8a65dc5a5b151bd82e92830a59d2e82f9d8b15.tar.xz
Update forge API for Sequence changes.
Diffstat (limited to 'lv2/lv2plug.in/ns')
-rw-r--r--lv2/lv2plug.in/ns/ext/atom/atom-test.c2
-rw-r--r--lv2/lv2plug.in/ns/ext/atom/forge.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/lv2/lv2plug.in/ns/ext/atom/atom-test.c b/lv2/lv2plug.in/ns/ext/atom/atom-test.c
index 1a88d7d..3c8678f 100644
--- a/lv2/lv2plug.in/ns/ext/atom/atom-test.c
+++ b/lv2/lv2plug.in/ns/ext/atom/atom-test.c
@@ -197,7 +197,7 @@ main()
// eg_seq = (Sequence)1, 2
lv2_atom_forge_property_head(&forge, obj, eg_seq, 0);
- LV2_Atom_Sequence* seq = lv2_atom_forge_sequence_head(&forge, obj, 0);
+ LV2_Atom_Sequence* seq = lv2_atom_forge_sequence_head(&forge, obj, 0, 0);
lv2_atom_forge_audio_time(&forge, (LV2_Atom*)seq, 0, 0);
lv2_atom_forge_int32(&forge, (LV2_Atom*)seq, 1);
lv2_atom_forge_audio_time(&forge, (LV2_Atom*)seq, 1, 0);
diff --git a/lv2/lv2plug.in/ns/ext/atom/forge.h b/lv2/lv2plug.in/ns/ext/atom/forge.h
index 2790778..95e7d49 100644
--- a/lv2/lv2plug.in/ns/ext/atom/forge.h
+++ b/lv2/lv2plug.in/ns/ext/atom/forge.h
@@ -387,7 +387,8 @@ lv2_atom_forge_property_head(LV2_Atom_Forge* forge,
static inline LV2_Atom_Sequence*
lv2_atom_forge_sequence_head(LV2_Atom_Forge* forge,
LV2_Atom* parent,
- uint32_t capacity)
+ uint32_t capacity,
+ uint32_t time_type)
{
LV2_Atom_Sequence* out = (LV2_Atom_Sequence*)
lv2_atom_forge_reserve(forge, parent, sizeof(LV2_Atom_Sequence));
@@ -395,7 +396,7 @@ lv2_atom_forge_sequence_head(LV2_Atom_Forge* forge,
out->atom.type = forge->Sequence;
out->atom.size = sizeof(LV2_Atom_Sequence) - sizeof(LV2_Atom);
out->capacity = capacity;
- out->pad = 0;
+ out->time_type = 0;
}
return out;
}