summaryrefslogtreecommitdiffstats
path: root/utils/lv2_inspect.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-02-18 20:08:45 +0000
committerDavid Robillard <d@drobilla.net>2007-02-18 20:08:45 +0000
commitf340d22e82760166d24a037d8466501217b06a3e (patch)
treefbc725a1b959d2e3ad634f078f1045cf26519ebd /utils/lv2_inspect.c
parenta80e895b0b23d478807377360b85b4bb1d7073b7 (diff)
downloadlilv-f340d22e82760166d24a037d8466501217b06a3e.tar.gz
lilv-f340d22e82760166d24a037d8466501217b06a3e.tar.bz2
lilv-f340d22e82760166d24a037d8466501217b06a3e.zip
API updates (removed SLV2Value (binary compatibility nightmare waiting to happen) and added consistent SLV2Plugins and SLV2Strings).
Documentation cleanups. git-svn-id: http://svn.drobilla.net/lad/slv2@314 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils/lv2_inspect.c')
-rw-r--r--utils/lv2_inspect.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 8dbc6e6..32c07dd 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -83,9 +83,9 @@ print_plugin(SLV2Plugin* p)
printf("<%s>\n", slv2_plugin_get_uri(p));
printf("\tData URIs:\n");
- SLV2URIList data_uris = slv2_plugin_get_data_uris(p);
- for (int i=0; i < slv2_uri_list_size(data_uris); ++i)
- printf("\t\t%s\n", slv2_uri_list_get_at(data_uris, i));
+ SLV2Strings data_uris = slv2_plugin_get_data_uris(p);
+ for (int i=0; i < slv2_strings_size(data_uris); ++i)
+ printf("\t\t%s\n", slv2_strings_get_at(data_uris, i));
printf("\n\tLibrary URI: %s\n\n", slv2_plugin_get_library_uri(p));
@@ -99,16 +99,16 @@ print_plugin(SLV2Plugin* p)
printf("\tHas latency: no\n");
printf("\tProperties:\n");
- SLV2Value v = slv2_plugin_get_properties(p);
- for (size_t i=0; i < v->num_values; ++i)
- printf("\t\t%s\n", v->values[i]);
- slv2_value_free(v);
+ SLV2Strings v = slv2_plugin_get_properties(p);
+ for (int i=0; i < slv2_strings_size(v); ++i)
+ printf("\t\t%s\n", slv2_strings_get_at(v, i));
+ slv2_strings_free(v);
printf("\tHints:\n");
v = slv2_plugin_get_hints(p);
- for (size_t i=0; i < v->num_values; ++i)
- printf("\t\t%s\n", v->values[i]);
- slv2_value_free(v);
+ for (int i=0; i < slv2_strings_size(v); ++i)
+ printf("\t\t%s\n", slv2_strings_get_at(v, i));
+ slv2_strings_free(v);
uint32_t num_ports = slv2_plugin_get_num_ports(p);
for (uint32_t i=0; i < num_ports; ++i)
@@ -127,10 +127,10 @@ main(int argc, char** argv)
return -1;
}
- SLV2List plugins = slv2_list_new();
- slv2_list_load_all(plugins);
+ SLV2Plugins plugins = slv2_plugins_new();
+ slv2_plugins_load_all(plugins);
- SLV2Plugin* p = slv2_list_get_plugin_by_uri(plugins, argv[1]);
+ SLV2Plugin* p = slv2_plugins_get_by_uri(plugins, argv[1]);
if (!p) {
fprintf(stderr, "Plugin not found.\n");