summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-04 00:20:19 +0000
committerDavid Robillard <d@drobilla.net>2009-06-04 00:20:19 +0000
commit78ee0c8a610187b149191e175013481a268dec6a (patch)
tree88d996220350c9dfc5c5153a115cafb00efb3857 /src/plugin.c
parent27751d02ec3acf33169e2f670c39edc95f02cd8d (diff)
downloadlilv-78ee0c8a610187b149191e175013481a268dec6a.tar.gz
lilv-78ee0c8a610187b149191e175013481a268dec6a.tar.bz2
lilv-78ee0c8a610187b149191e175013481a268dec6a.zip
Centralize storage creation and only create SPO and OPS indices (TODO: Add API for user to select, predicate-variable queries will be slow this way).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2090 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 1b6f3de..26168e2 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -195,9 +195,7 @@ slv2_plugin_load(SLV2Plugin p)
if (!p->storage) {
assert(!p->rdf);
- p->storage = librdf_new_storage(p->world->world, "trees", NULL, NULL);
- if (!p->storage)
- p->storage = librdf_new_storage(p->world->world, "memory", NULL, NULL);
+ p->storage = slv2_world_new_storage(p->world);
p->rdf = librdf_new_model(p->world->world, p->storage, NULL);
}