summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-29 20:53:08 +0000
committerDavid Robillard <d@drobilla.net>2011-01-29 20:53:08 +0000
commitd5a4b60e8f72b76dd4d98b43f77bd9da26c0dc4a (patch)
treedaa0a28cd52fa10afa174f5bdd5b6b7c5bf59fd6 /src/world.c
parent1e7c6fab14ca1efd91145fea55dfbf9d272f0539 (diff)
downloadlilv-d5a4b60e8f72b76dd4d98b43f77bd9da26c0dc4a.tar.gz
lilv-d5a4b60e8f72b76dd4d98b43f77bd9da26c0dc4a.tar.bz2
lilv-d5a4b60e8f72b76dd4d98b43f77bd9da26c0dc4a.zip
Non-SPARQL version of slv2_plugin_get_value_by_qname.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2857 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index a4e21ae..893d39c 100644
--- a/src/world.c
+++ b/src/world.c
@@ -79,6 +79,15 @@ slv2_world_new_internal(SLV2World world)
world->lv2_plugin_class = slv2_plugin_class_new(world, NULL,
librdf_node_get_uri(world->lv2_plugin_node), "Plugin");
+ world->namespaces = librdf_new_hash_from_string(
+ world->world, NULL,
+ "rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#',"
+ "rdfs='http://www.w3.org/2000/01/rdf-schema#',"
+ "doap='http://usefulinc.com/ns/doap#',"
+ "foaf='http://xmlns.com/foaf/0.1/',"
+ "lv2='http://lv2plug.in/ns/lv2core#',"
+ "lv2ev='http://lv2plug.in/ns/ext/event#'");
+
return world;
fail:
@@ -182,6 +191,8 @@ slv2_world_free(SLV2World world)
librdf_free_storage(world->storage);
world->storage = NULL;
+ librdf_free_hash(world->namespaces);
+
if (world->local_world)
librdf_free_world(world->world);