aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/lv2plug.in/ns/ext/atom
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-02-25 14:11:43 +0100
committerDavid Robillard <d@drobilla.net>2015-02-27 04:37:31 -0500
commit479843fc4dfaafdba49cf024115261c20abeb89d (patch)
tree1f53b141ede6c60386f1cb9314a7ec29572879f4 /lv2/lv2plug.in/ns/ext/atom
parentc88c6310dd4ebe16c64d1c498155aaed302699b4 (diff)
downloadlv2-479843fc4dfaafdba49cf024115261c20abeb89d.tar.xz
Fix LV2_ATOM_TUPLE_FOREACH macro.
* using the LV2_ATOM_TUPLE_FOREACH macro throws a compile error * the 'LV2_Atom_Tuple' has no own size attribute * '(tuple)->size' should read: '(tuple)->atom.size' Signed-off-by: Hanspeter Portner <dev@open-music-kontrollers.ch>
Diffstat (limited to 'lv2/lv2plug.in/ns/ext/atom')
-rw-r--r--lv2/lv2plug.in/ns/ext/atom/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lv2/lv2plug.in/ns/ext/atom/util.h b/lv2/lv2plug.in/ns/ext/atom/util.h
index 52cdf93..7ca570f 100644
--- a/lv2/lv2plug.in/ns/ext/atom/util.h
+++ b/lv2/lv2plug.in/ns/ext/atom/util.h
@@ -214,14 +214,14 @@ lv2_atom_tuple_next(const LV2_Atom* i)
This macro is used similarly to a for loop (which it expands to), e.g.:
@code
- LV2_ATOMO_TUPLE_FOREACH(tuple, elem) {
+ LV2_ATOM_TUPLE_FOREACH(tuple, elem) {
// Do something with elem (an LV2_Atom*) here...
}
@endcode
*/
#define LV2_ATOM_TUPLE_FOREACH(tuple, iter) \
for (LV2_Atom* (iter) = lv2_atom_tuple_begin(tuple); \
- !lv2_atom_tuple_is_end(LV2_ATOM_BODY(tuple), (tuple)->size, (iter)); \
+ !lv2_atom_tuple_is_end(LV2_ATOM_BODY(tuple), (tuple)->atom.size, (iter)); \
(iter) = lv2_atom_tuple_next(iter))
/** Like LV2_ATOM_TUPLE_FOREACH but for a headerless tuple body. */