summaryrefslogtreecommitdiffstats
path: root/src/port.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-26 22:20:40 +0000
committerDavid Robillard <d@drobilla.net>2012-02-26 22:20:40 +0000
commit72e3c06d3a6b2558e5e156f917e1c28441819417 (patch)
tree2a82d6701e1a2e75fd1d3d38eb11fbc7fc8b5fce /src/port.c
parente1624b6435b3392ed03b8b5d4751cfeb53eb1f61 (diff)
downloadlilv-72e3c06d3a6b2558e5e156f917e1c28441819417.tar.gz
lilv-72e3c06d3a6b2558e5e156f917e1c28441819417.tar.bz2
lilv-72e3c06d3a6b2558e5e156f917e1c28441819417.zip
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
Diffstat (limited to 'src/port.c')
-rw-r--r--src/port.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/port.c b/src/port.c
index f008020..f2f8fd6 100644
--- a/src/port.c
+++ b/src/port.c
@@ -131,6 +131,14 @@ lilv_port_get_value(const LilvPlugin* p,
}
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,
const LilvPort* port)