summaryrefslogtreecommitdiffstats
path: root/src/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port.c')
-rw-r--r--src/port.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/port.c b/src/port.c
index 00896df..48d87dd 100644
--- a/src/port.c
+++ b/src/port.c
@@ -127,6 +127,21 @@ lilv_port_get_value(const LilvPlugin* p,
}
LILV_API
+LilvNode*
+lilv_port_get(const LilvPlugin* p,
+ const LilvPort* port,
+ const LilvNode* predicate)
+{
+ LilvNodes* values = lilv_port_get_value(p, port, predicate);
+
+ LilvNode* value = lilv_node_duplicate(
+ values ? lilv_nodes_get_first(values) : NULL);
+
+ lilv_nodes_free(values);
+ return value;
+}
+
+LILV_API
uint32_t
lilv_port_get_index(const LilvPlugin* p,
const LilvPort* port)