diff options
author | David Robillard <d@drobilla.net> | 2007-10-03 22:21:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-03 22:21:16 +0000 |
commit | 47c8ed163b98b307fa4f7412e59760ccff8e630f (patch) | |
tree | ceae86f8a9010aceb1cdd73ee791e1573d21dc29 /src/world.c | |
parent | 26eede34411b65b484970b2e3524ff7419f58305 (diff) | |
download | lilv-47c8ed163b98b307fa4f7412e59760ccff8e630f.tar.gz lilv-47c8ed163b98b307fa4f7412e59760ccff8e630f.tar.bz2 lilv-47c8ed163b98b307fa4f7412e59760ccff8e630f.zip |
Fix Plugin class related bugs.
git-svn-id: http://svn.drobilla.net/lad/slv2@814 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/world.c b/src/world.c index 052dadf..fe7bbbf 100644 --- a/src/world.c +++ b/src/world.c @@ -56,12 +56,10 @@ slv2_world_new() if (!world->parser) goto fail; - world->plugin_classes = slv2_plugin_classes_new(); - - // Add the ever-present lv2:Plugin to classes static const char* lv2_plugin_uri = "http://lv2plug.in/ns/lv2core#Plugin"; - raptor_sequence_push(world->plugin_classes, slv2_plugin_class_new( - world, NULL, lv2_plugin_uri, "Plugin")); + world->lv2_plugin_class = slv2_plugin_class_new(world, NULL, lv2_plugin_uri, "Plugin"); + + world->plugin_classes = slv2_plugin_classes_new(); world->plugins = slv2_plugins_new(); @@ -106,12 +104,10 @@ slv2_world_new_using_rdf_world(librdf_world* rdf_world) if (!world->parser) goto fail; - world->plugin_classes = slv2_plugin_classes_new(); - - // Add the ever-present lv2:Plugin to classes static const char* lv2_plugin_uri = "http://lv2plug.in/ns/lv2core#Plugin"; - raptor_sequence_push(world->plugin_classes, slv2_plugin_class_new( - world, NULL, lv2_plugin_uri, "Plugin")); + world->lv2_plugin_class = slv2_plugin_class_new(world, NULL, lv2_plugin_uri, "Plugin"); + + world->plugin_classes = slv2_plugin_classes_new(); world->plugins = slv2_plugins_new(); @@ -563,7 +559,7 @@ slv2_world_serialize(const char* filename) SLV2PluginClass slv2_world_get_plugin_class(SLV2World world) { - return raptor_sequence_get_at(world->plugin_classes, 0); + return world->lv2_plugin_class; } |