summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-20 21:32:57 +0000
committerDavid Robillard <d@drobilla.net>2008-01-20 21:32:57 +0000
commit42aa3c32cdd4c6a0cc1e3372d57ac99511b2f46d (patch)
tree483949fefd1306a1d9919de3effe5efb1056f65d /utils
parent5d8ed7bec58131367d69840bfb299fe93568fe6d (diff)
downloadlilv-42aa3c32cdd4c6a0cc1e3372d57ac99511b2f46d.tar.gz
lilv-42aa3c32cdd4c6a0cc1e3372d57ac99511b2f46d.tar.bz2
lilv-42aa3c32cdd4c6a0cc1e3372d57ac99511b2f46d.zip
Work on new generic events extension.
git-svn-id: http://svn.drobilla.net/lad/slv2@1089 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2_inspect.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 5919201..55c6478 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -69,6 +69,18 @@ print_port(SLV2Plugin p, uint32_t index)
printf("Unknown");
}
+ if (type == SLV2_PORT_DATA_TYPE_EVENT) {
+ SLV2Values supported = slv2_port_get_value(p, port,
+ "lv2ev:supportsEvent");
+ if (slv2_values_size(supported) > 0) {
+ printf("\n\t\tSupported events:\n");
+ for (unsigned i=0; i < slv2_values_size(supported); ++i) {
+ printf("\t\t\t%s\n", slv2_value_as_uri(slv2_values_get_at(supported, i)));
+ }
+ }
+ slv2_values_free(supported);
+ }
+
str = slv2_port_get_symbol(p, port);
printf("\n\t\tSymbol: %s\n", str);
free(str);