diff options
author | David Robillard <d@drobilla.net> | 2013-01-10 06:22:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-10 06:22:34 +0000 |
commit | d9ebcb2a89b4953d85c6cad9aceea1ad9b831254 (patch) | |
tree | 22dd90415e471cc81b74f04d750d57ca22610fc3 /src/plugin.c | |
parent | bca2ea6d56e62cf6eb767a7a5276416499ae86ab (diff) | |
download | lilv-d9ebcb2a89b4953d85c6cad9aceea1ad9b831254.tar.gz lilv-d9ebcb2a89b4953d85c6cad9aceea1ad9b831254.tar.bz2 lilv-d9ebcb2a89b4953d85c6cad9aceea1ad9b831254.zip |
Make lilv_plugin_get_port_by_designation() return a const pointer.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4912 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugin.c b/src/plugin.c index 3386e02..4952f01 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -612,7 +612,7 @@ lilv_plugin_has_latency(const LilvPlugin* p) return ret; } -static LilvPort* +static const LilvPort* lilv_plugin_get_port_by_property(const LilvPlugin* plugin, const LilvNode* port_property) { @@ -637,7 +637,7 @@ lilv_plugin_get_port_by_property(const LilvPlugin* plugin, } LILV_API -LilvPort* +const LilvPort* lilv_plugin_get_port_by_designation(const LilvPlugin* plugin, const LilvNode* port_class, const LilvNode* designation) @@ -668,10 +668,10 @@ LILV_API uint32_t lilv_plugin_get_latency_port_index(const LilvPlugin* p) { - LilvNode* property = lilv_node_new_from_node( + LilvNode* prop = lilv_node_new_from_node( p->world, p->world->uris.lv2_reportsLatency); - LilvPort* latency_port = lilv_plugin_get_port_by_property(p, property); - lilv_node_free(property); + const LilvPort* latency_port = lilv_plugin_get_port_by_property(p, prop); + lilv_node_free(prop); return latency_port ? latency_port->index : UINT32_MAX; } |