From 435bc2fc2c0eb78addac1e688411ad8fad02517a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 30 Jun 2007 22:29:56 +0000 Subject: Added support for (Lars Luthman's) GTK GUI extension (SLV2 still does NOT depend on GTK!). git-svn-id: http://svn.drobilla.net/lad/slv2@546 a436a847-0d15-0410-975c-d299462d15a1 --- utils/lv2_inspect.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'utils') 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); -- cgit v1.2.1