diff options
author | David Robillard <d@drobilla.net> | 2011-03-11 00:06:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-11 00:06:07 +0000 |
commit | 0ad295a550f8637cbc71cf15652f94a0cba763d6 (patch) | |
tree | 780fc86cb4ac8cc3c0da6454c6e0a77968b5eb1c /src/plugin.c | |
parent | 21d99cda2491dca95217a4a0012020da31090d8a (diff) | |
download | lilv-0ad295a550f8637cbc71cf15652f94a0cba763d6.tar.gz lilv-0ad295a550f8637cbc71cf15652f94a0cba763d6.tar.bz2 lilv-0ad295a550f8637cbc71cf15652f94a0cba763d6.zip |
Add slv2_plugin_is_replaced to allow hosts to hide old plugins.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3066 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c index e86b16a..ce5299e 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -63,6 +63,7 @@ slv2_plugin_new(SLV2World world, SLV2Value uri, SLV2Value bundle_uri) plugin->ports = NULL; plugin->num_ports = 0; plugin->loaded = false; + plugin->replaced = false; return plugin; } @@ -775,6 +776,13 @@ slv2_plugin_get_author_homepage(SLV2Plugin plugin) } SLV2_API +bool +slv2_plugin_is_replaced(SLV2Plugin plugin) +{ + return plugin->replaced; +} + +SLV2_API SLV2UIs slv2_plugin_get_uis(SLV2Plugin p) { |