diff options
author | David Robillard <d@drobilla.net> | 2007-06-30 22:29:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-30 22:29:56 +0000 |
commit | 435bc2fc2c0eb78addac1e688411ad8fad02517a (patch) | |
tree | 68eb0a9f6ceac13a9cd634f9cf8ea4fb5f7da75c /utils/lv2_inspect.c | |
parent | 8d964fa7e72ebf076cd40a0b72caf778ce82fb85 (diff) | |
download | lilv-435bc2fc2c0eb78addac1e688411ad8fad02517a.tar.gz lilv-435bc2fc2c0eb78addac1e688411ad8fad02517a.tar.bz2 lilv-435bc2fc2c0eb78addac1e688411ad8fad02517a.zip |
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
Diffstat (limited to 'utils/lv2_inspect.c')
-rw-r--r-- | utils/lv2_inspect.c | 21 |
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); |