diff options
author | David Robillard <d@drobilla.net> | 2007-04-21 07:13:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-21 07:13:35 +0000 |
commit | ac3f3ffe14e0e01710e0ded24914d5ca1f31f55d (patch) | |
tree | f8b5b1762233efa142f8ee840a4ebf9211325a04 /src/plugin.c | |
parent | 081352a14c7c4f73113d9a491280e327eec14c83 (diff) | |
download | lilv-ac3f3ffe14e0e01710e0ded24914d5ca1f31f55d.tar.gz lilv-ac3f3ffe14e0e01710e0ded24914d5ca1f31f55d.tar.bz2 lilv-ac3f3ffe14e0e01710e0ded24914d5ca1f31f55d.zip |
Plugin classes (categories) progress.
git-svn-id: http://svn.drobilla.net/lad/slv2@467 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/plugin.c b/src/plugin.c index 6216ab7..6d8dc87 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -172,7 +172,7 @@ slv2_plugin_load(SLV2Plugin p) } if (p->plugin_class == NULL) - fprintf(stderr, "Warning: Unclassy plugin: %s\n", slv2_plugin_get_uri(p)); + p->plugin_class = raptor_sequence_get_at(p->world->plugin_classes, 0); // lv2:Plugin // Load ports query = (const unsigned char*) @@ -247,9 +247,12 @@ slv2_plugin_get_library_uri(SLV2Plugin p) SLV2PluginClass -slv2_plugin_get_plugin_class(SLV2Plugin p) +slv2_plugin_get_class(SLV2Plugin p) { - if (!p->plugin_class) + // FIXME: Typical use case this will bring every single plugin model + // into memory + + if (!p->rdf) slv2_plugin_load(p); return p->plugin_class; @@ -329,15 +332,6 @@ slv2_plugin_get_name(SLV2Plugin plugin) } -/** Get the class this plugin belongs to (ie Filters). - */ -SLV2PluginClass -slv2_plugin_get_class(SLV2Plugin plugin) -{ - return plugin->plugin_class; -} - - SLV2Strings slv2_plugin_get_value(SLV2Plugin p, const char* predicate) |