From 42aa3c32cdd4c6a0cc1e3372d57ac99511b2f46d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 20 Jan 2008 21:32:57 +0000 Subject: Work on new generic events extension. git-svn-id: http://svn.drobilla.net/lad/slv2@1089 a436a847-0d15-0410-975c-d299462d15a1 --- utils/lv2_inspect.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'utils') 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); -- cgit v1.2.1