summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-05-08 03:30:37 +0000
committerDavid Robillard <d@drobilla.net>2007-05-08 03:30:37 +0000
commitf6ff6e487201bdd94e584397ce829daaa424aba9 (patch)
treeaedf571fe2c1db5d3d3cd1511805e51aca64a75e /utils
parent816279720d70902bf1beba5a2aaaf135707ae77f (diff)
downloadlilv-f6ff6e487201bdd94e584397ce829daaa424aba9.tar.gz
lilv-f6ff6e487201bdd94e584397ce829daaa424aba9.tar.bz2
lilv-f6ff6e487201bdd94e584397ce829daaa424aba9.zip
Reworked simple query API to allow passing either QName or URI predicates.
Hack around a Rasqal bug for the above (URI predicates). Clean up exposed names for greppability and to not violate user namespace. Fixed slv2_plugin_get_value and slv2_plugin_get_value_for_resource. git-svn-id: http://svn.drobilla.net/lad/slv2@517 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2_inspect.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 5e45159..11f14dd 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -109,7 +109,26 @@ print_plugin(SLV2Plugin p)
printf("\tBinary: %s\n\n", slv2_plugin_get_library_uri(p));
- printf("\tData URIs:\n");
+ SLV2Values gui = slv2_plugin_get_value(p, SLV2_URI,
+ "http://ll-plugins.nongnu.org/lv2/ext/gtk2gui#gui");
+ 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");
+
+ if (slv2_values_size(binary) > 0)
+ printf("\t\t\tBinary: %s\n", slv2_value_as_uri(slv2_values_get_at(binary, 0)));
+ }
+ }
+
+ //SLV2Values gui = slv2_plugin_get_value_for_subject(p,
+ // "<http://ll-plugins.nongnu.org/lv2/ext/gtk2gui#gui>");
+
+ printf("\n\tData URIs:\n");
SLV2Values data_uris = slv2_plugin_get_data_uris(p);
for (unsigned i=0; i < slv2_values_size(data_uris); ++i)
printf("\t\t%s\n", slv2_value_as_uri(slv2_values_get_at(data_uris, i)));