From 72e3c06d3a6b2558e5e156f917e1c28441819417 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 26 Feb 2012 22:20:40 +0000 Subject: Add lilv_plugin_get_port_by_property() and lilv_port_get_index() as an improved generic alternative to lilv_plugin_get_latency_port_index(). git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4001 a436a847-0d15-0410-975c-d299462d15a1 --- src/port.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/port.c') diff --git a/src/port.c b/src/port.c index f008020..f2f8fd6 100644 --- a/src/port.c +++ b/src/port.c @@ -130,6 +130,14 @@ lilv_port_get_value(const LilvPlugin* p, lilv_node_as_node(predicate)); } +LILV_API +uint32_t +lilv_port_get_index(const LilvPlugin* p, + const LilvPort* port) +{ + return port->index; +} + LILV_API const LilvNode* lilv_port_get_symbol(const LilvPlugin* p, -- cgit v1.2.1