diff options
author | David Robillard <d@drobilla.net> | 2013-01-09 03:05:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-09 03:05:13 +0000 |
commit | 67067320cb53f3c84bb7901e446f3d1798667e57 (patch) | |
tree | efaf94976fbef5f7ed9843bcd8056ee3289167ea /src/World.cpp | |
parent | 19b6f2d1c1e8ddcc52b45b4a2c17d4f0317ceabc (diff) | |
download | ingen-67067320cb53f3c84bb7901e446f3d1798667e57.tar.gz ingen-67067320cb53f3c84bb7901e446f3d1798667e57.tar.bz2 ingen-67067320cb53f3c84bb7901e446f3d1798667e57.zip |
Load internal plugin data files and rework documentation code to work the same as LV2 plugins (fix #671).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4910 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp index cccb5044..8b6a58ea 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -42,7 +42,6 @@ class Store; namespace Serialisation { class Parser; class Serialiser; } - /** Load a dynamic module from the default path. * * This will check in the directories specified in the environment variable @@ -135,6 +134,20 @@ public: rdf_world->add_prefix("owl", "http://www.w3.org/2002/07/owl#"); rdf_world->add_prefix("rdfs", "http://www.w3.org/2000/01/rdf-schema#"); rdf_world->add_prefix("xsd", "http://www.w3.org/2001/XMLSchema#"); + + // Load internal 'plugin' information into lilv world + LilvNode* rdf_type = lilv_new_uri( + lilv_world, "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"); + LilvNode* ingen_Plugin = lilv_new_uri( + lilv_world, "http://drobilla.net/ns/ingen#Plugin"); + LilvNodes* internals = lilv_world_find_nodes( + lilv_world, NULL, rdf_type, ingen_Plugin); + LILV_FOREACH(nodes, i, internals) { + const LilvNode* internal = lilv_nodes_get(internals, i); + lilv_world_load_resource(lilv_world, internal); + } + lilv_node_free(rdf_type); + lilv_node_free(ingen_Plugin); } ~Impl() |