diff options
author | David Robillard <d@drobilla.net> | 2007-09-23 18:51:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-23 18:51:21 +0000 |
commit | a06305e2c8068f0519f25ab3d0eddf7278d6ba7c (patch) | |
tree | 57c89dffe104e5bf0fa561c35a550f564279321c /utils | |
parent | d26a3e39c72c17acbe5bb371a6638acd2469bdac (diff) | |
download | lilv-a06305e2c8068f0519f25ab3d0eddf7278d6ba7c.tar.gz lilv-a06305e2c8068f0519f25ab3d0eddf7278d6ba7c.tar.bz2 lilv-a06305e2c8068f0519f25ab3d0eddf7278d6ba7c.zip |
Support for plugin UIs in separate bundles.
Fix some memory leaks.
Better/more future proof UI interface.
git-svn-id: http://svn.drobilla.net/lad/slv2@772 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lv2_inspect.c | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c index ee52b9b..b229c8e 100644 --- a/utils/lv2_inspect.c +++ b/utils/lv2_inspect.c @@ -126,24 +126,27 @@ print_plugin(SLV2Plugin p) printf("\tBundle: %s\n", slv2_plugin_get_bundle_uri(p)); printf("\tBinary: %s\n", slv2_plugin_get_library_uri(p)); - SLV2Values ui = slv2_plugin_get_uis(p); - if (slv2_values_size(ui) > 0) { - printf("\tGUI:\n"); - for (unsigned i=0; i < slv2_values_size(ui); ++i) { - printf("\t\t%s\n", slv2_value_as_uri(slv2_values_get_at(ui, i))); + SLV2PluginUIs uis = slv2_plugin_get_uis(p); + if (slv2_values_size(uis) > 0) { + printf("\tGUI: "); + for (unsigned i=0; i < slv2_plugin_uis_size(uis); ++i) { + SLV2PluginUI ui = slv2_plugin_uis_get_at(uis, i); + printf("%s\n", slv2_plugin_ui_get_uri(ui)); + + const char* binary = slv2_plugin_ui_get_binary_uri(ui); - SLV2Value binary = slv2_plugin_get_ui_library_uri(p, slv2_values_get_at(ui, i)); - - printf("\t\t\tType: %s\n", slv2_ui_type_get_uri(slv2_value_as_ui_type( - slv2_values_get_at(ui, i)))); + SLV2Values types = slv2_plugin_ui_get_types(ui); + for (unsigned i=0; i < slv2_values_size(types); ++i) { + printf("\t\t\tType: %s\n", slv2_value_as_uri(slv2_values_get_at(types, i))); + } if (binary) - printf("\t\t\tBinary: %s\n", slv2_value_as_uri(binary)); - - slv2_value_free(binary); + printf("\t\t\tBinary: %s\n", binary); + + printf("\t\t\tBundle: %s\n", slv2_plugin_ui_get_bundle_uri(ui)); } } - slv2_values_free(ui); + slv2_plugin_uis_free(uis); //SLV2Values ui = slv2_plugin_get_value_for_subject(p, // "<http://ll-plugins.nongnu.org/lv2/ext/gtk2ui#ui>"); @@ -183,6 +186,7 @@ print_plugin(SLV2Plugin p) printf("%s\n", slv2_value_as_uri(slv2_values_get_at(hints, i))); } printf("\n"); + slv2_values_free(hints); /* Ports */ |