summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2_inspect.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 03f4e14..a7a5bf0 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -109,21 +109,18 @@ print_plugin(SLV2Plugin p)
printf("\tBinary: %s\n\n", slv2_plugin_get_library_uri(p));
- SLV2Values gui = slv2_plugin_get_value(p, SLV2_URI,
- "http://ll-plugins.nongnu.org/lv2/ext/gtk2gui#gui");
+ SLV2Values gui = slv2_plugin_get_guis(p);
if (slv2_values_size(gui) > 0) {
printf("\tGUI:\n");
for (unsigned i=0; i < slv2_values_size(gui); ++i) {
printf("\t\t%s\n", slv2_value_as_string(slv2_values_get_at(gui, i)));
- SLV2Values binary = slv2_plugin_get_value_for_subject(p,
- slv2_values_get_at(gui, i),
- SLV2_URI,
- "http://ll-plugins.nongnu.org/lv2/ext/gtk2gui#binary");
+ SLV2Value binary = slv2_plugin_gui_get_library_uri(p,
+ slv2_values_get_at(gui, i));
- if (slv2_values_size(binary) > 0)
- printf("\t\t\tBinary: %s\n", slv2_value_as_uri(slv2_values_get_at(binary, 0)));
-
- slv2_values_free(binary);
+ if (binary)
+ printf("\t\t\tBinary: %s\n", slv2_value_as_uri(binary));
+
+ slv2_value_free(binary);
}
}
slv2_values_free(gui);
@@ -158,8 +155,8 @@ print_plugin(SLV2Plugin p)
for (unsigned i=0; i < slv2_values_size(v); ++i)
printf("\t\t%s\n", slv2_value_as_uri(slv2_values_get_at(v, i)));
slv2_values_free(v);
-
-
+
+
/* Ports */
uint32_t num_ports = slv2_plugin_get_num_ports(p);