summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-31 17:26:30 +0000
committerDavid Robillard <d@drobilla.net>2011-01-31 17:26:30 +0000
commite98533cbbd871495593879c3ae7b1fe204434a07 (patch)
tree73aefbfe2513ae5def2f8e235b32cbe37c00031d /src/plugin.c
parent920128cdb2bb7fe99a000965f26efb2f72cff524 (diff)
downloadlilv-e98533cbbd871495593879c3ae7b1fe204434a07.tar.gz
lilv-e98533cbbd871495593879c3ae7b1fe204434a07.tar.bz2
lilv-e98533cbbd871495593879c3ae7b1fe204434a07.zip
Remove slv2_value_as_librdf_uri.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2892 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 57e0dc6..ec39749 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -263,7 +263,8 @@ slv2_plugin_load(SLV2Plugin p)
// Parse all the plugin's data files into RDF model
for (unsigned i=0; i < slv2_values_size(p->data_uris); ++i) {
SLV2Value data_uri_val = slv2_values_get_at(p->data_uris, i);
- librdf_uri* data_uri = slv2_value_as_librdf_uri(data_uri_val);
+ librdf_uri* data_uri = librdf_node_get_uri(
+ slv2_value_as_node(data_uri_val));
librdf_parser_parse_into_model(p->world->parser, data_uri, data_uri, p->rdf);
}
@@ -292,8 +293,10 @@ slv2_plugin_load(SLV2Plugin p)
FILE* fd = tmpfile();
get_data_func(handle, fd, slv2_value_as_string(p->plugin_uri));
rewind(fd);
- librdf_parser_parse_file_handle_into_model(p->world->parser,
- fd, 0, slv2_value_as_librdf_uri(p->bundle_uri), p->rdf);
+ librdf_parser_parse_file_handle_into_model(
+ p->world->parser, fd, 0,
+ librdf_node_get_value(slv2_value_as_node(p->bundle_uri)),
+ p->rdf);
fclose(fd);
}