diff options
author | David Robillard <d@drobilla.net> | 2007-05-01 04:01:04 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-05-01 04:01:04 +0000 |
commit | 5f936c270bb8f8e449a7ca2daf50c164910339b8 (patch) | |
tree | c74b46bd52cff4b25c421b97cf7b032e2df5cbba /src | |
parent | 2afaf28258dc8b6546c6f1c762f0d401bb50b896 (diff) | |
download | lilv-5f936c270bb8f8e449a7ca2daf50c164910339b8.tar.gz lilv-5f936c270bb8f8e449a7ca2daf50c164910339b8.tar.bz2 lilv-5f936c270bb8f8e449a7ca2daf50c164910339b8.zip |
Converted Raul (and thus Ingen and Machina) to use Redland over Raptor/Rasqal independently.
Fixed patch loading for Ingen (local only, still something wrong with remote...).
git-svn-id: http://svn.drobilla.net/lad/slv2@486 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/world.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c index 556ccf4..dab7532 100644 --- a/src/world.c +++ b/src/world.c @@ -57,6 +57,33 @@ slv2_world_new() } +SLV2World +slv2_world_new_using_rdf_world(librdf_world* rdf_world) +{ + struct _World* world = (struct _World*)malloc(sizeof(struct _World)); + + world->world = rdf_world; + + world->storage = librdf_new_storage(world->world, "hashes", NULL, + "hash-type='memory'"); + + world->model = librdf_new_model(world->world, world->storage, NULL); + + world->parser = librdf_new_parser(world->world, "turtle", NULL, NULL); + + world->plugin_classes = slv2_plugin_classes_new(); + + // Add the ever-present lv2:Plugin to classes + static const char* lv2_plugin_uri = "http://lv2plug.in/ontology#Plugin"; + raptor_sequence_push(world->plugin_classes, slv2_plugin_class_new( + world, NULL, lv2_plugin_uri, "Plugin")); + + world->plugins = slv2_plugins_new(); + + return world; +} + + void slv2_world_free(SLV2World world) { |