summaryrefslogtreecommitdiffstats
path: root/src/port.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-31 05:30:10 +0000
committerDavid Robillard <d@drobilla.net>2011-01-31 05:30:10 +0000
commit87c10c7cec29665aef891e4236e748a4fbed3030 (patch)
treed3a22f2e677611c9f567fb56d86bc4e136c742fa /src/port.c
parentd81b0c688ddb864fe6ebfee818dc1af76c7bc97b (diff)
downloadlilv-87c10c7cec29665aef891e4236e748a4fbed3030.tar.gz
lilv-87c10c7cec29665aef891e4236e748a4fbed3030.tar.bz2
lilv-87c10c7cec29665aef891e4236e748a4fbed3030.zip
librdf_new_node_from_node => slv2_node_copy.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2888 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/port.c')
-rw-r--r--src/port.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/port.c b/src/port.c
index a1c9046..b5fa57c 100644
--- a/src/port.c
+++ b/src/port.c
@@ -70,23 +70,23 @@ slv2_port_get_node(SLV2Plugin p,
{
SLV2Matches ports = slv2_plugin_find_statements(
p,
- librdf_new_node_from_node(p->plugin_uri->val.uri_val),
- librdf_new_node_from_node(p->world->lv2_port_node),
+ slv2_node_copy(p->plugin_uri->val.uri_val),
+ slv2_node_copy(p->world->lv2_port_node),
NULL);
librdf_node* ret = NULL;
FOREACH_MATCH(ports) {
librdf_node* node = MATCH_OBJECT(ports);
SLV2Value symbol = slv2_plugin_get_unique(
p,
- librdf_new_node_from_node(node),
- librdf_new_node_from_node(p->world->lv2_symbol_node));
+ slv2_node_copy(node),
+ slv2_node_copy(p->world->lv2_symbol_node));
const bool matches = slv2_value_equals(symbol,
slv2_port_get_symbol(p, port));
slv2_value_free(symbol);
if (matches) {
- ret = librdf_new_node_from_node(node);
+ ret = slv2_node_copy(node);
break;
}
}
@@ -329,13 +329,13 @@ slv2_port_get_scale_points(SLV2Plugin p,
SLV2Value value = slv2_plugin_get_unique(
p,
- librdf_new_node_from_node(point),
- librdf_new_node_from_node(p->world->rdf_value_node));
+ slv2_node_copy(point),
+ slv2_node_copy(p->world->rdf_value_node));
SLV2Value label = slv2_plugin_get_unique(
p,
- librdf_new_node_from_node(point),
- librdf_new_node_from_node(p->world->rdfs_label_node));
+ slv2_node_copy(point),
+ slv2_node_copy(p->world->rdfs_label_node));
if (value && label) {
raptor_sequence_push(ret, slv2_scale_point_new(value, label));