From 2a16021425dab995e902d133b060ebcf6c59a00c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 28 Apr 2011 06:02:12 +0000 Subject: 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 --- utils/lv2_list.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'utils/lv2_list.c') 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); -- cgit v1.2.1