diff options
author | David Robillard <d@drobilla.net> | 2011-04-29 02:46:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-29 02:46:53 +0000 |
commit | 3760ff6900140d9bae6f811f8d13112862adc751 (patch) | |
tree | c166c4bca4b7eeba5967c691619f0df36f6aa113 /src/port.c | |
parent | c1c9e8fd70ba0e8f377ffc551c817ecd8dee796e (diff) | |
download | lilv-3760ff6900140d9bae6f811f8d13112862adc751.tar.gz lilv-3760ff6900140d9bae6f811f8d13112862adc751.tar.bz2 lilv-3760ff6900140d9bae6f811f8d13112862adc751.zip |
Remove half-assed qname API.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3226 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/port.c')
-rw-r--r-- | src/port.c | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -126,29 +126,6 @@ lilv_port_supports_event(const LilvPlugin* p, return ret; } -LILV_API -LilvValues* -lilv_port_get_value_by_qname(const LilvPlugin* p, - const LilvPort* port, - const char* predicate) -{ - assert(predicate); - uint8_t* pred_uri = lilv_qname_expand(p, predicate); - if (!pred_uri) { - return NULL; - } - - LilvNode port_node = lilv_port_get_node(p, port); - LilvMatches results = lilv_plugin_find_statements( - p, - port_node, - sord_new_uri(p->world->world, pred_uri), - NULL); - - free(pred_uri); - return lilv_values_from_stream_objects(p, results); -} - static LilvValues* lilv_port_get_value_by_node(const LilvPlugin* p, const LilvPort* port, @@ -264,7 +241,7 @@ lilv_port_get_scale_points(const LilvPlugin* p, LilvMatches points = lilv_plugin_find_statements( p, port_node, - sord_new_uri(p->world->world, LILV_NS_LV2 "scalePoint"), + sord_new_uri(p->world->world, (const uint8_t*)LILV_NS_LV2 "scalePoint"), NULL); LilvScalePoints* ret = NULL; |