summaryrefslogtreecommitdiffstats
path: root/utils/lv2_list.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-28 06:02:12 +0000
committerDavid Robillard <d@drobilla.net>2011-04-28 06:02:12 +0000
commit2a16021425dab995e902d133b060ebcf6c59a00c (patch)
tree042783cc69184323d799da5db497461d108f6a89 /utils/lv2_list.c
parent00ceff504269034db8e1bfb54a97b5732c2dadce (diff)
downloadlilv-2a16021425dab995e902d133b060ebcf6c59a00c.tar.gz
lilv-2a16021425dab995e902d133b060ebcf6c59a00c.tar.bz2
lilv-2a16021425dab995e902d133b060ebcf6c59a00c.zip
More future-proof collection APIs.
Make all iterator actions occur through a collection specific function. Verbose, and a low of API, but allows for the possibility of different collection implementation types (given a choice between verbosity and no type safety, I'll take verbosity). git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3211 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils/lv2_list.c')
-rw-r--r--utils/lv2_list.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/lv2_list.c b/utils/lv2_list.c
index 02779cc..d62699a 100644
--- a/utils/lv2_list.c
+++ b/utils/lv2_list.c
@@ -25,9 +25,7 @@
void
list_plugins(SLV2Plugins list, bool show_names)
{
- for (SLV2Iter i = slv2_plugins_begin(list);
- !slv2_iter_end(i);
- i = slv2_iter_next(i)) {
+ SLV2_FOREACH(plugins, i, list) {
SLV2Plugin p = slv2_plugins_get(list, i);
if (show_names) {
SLV2Value n = slv2_plugin_get_name(p);