summaryrefslogtreecommitdiffstats
path: root/src/common/interface/Plugin.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/interface/Plugin.hpp')
-rw-r--r--src/common/interface/Plugin.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/interface/Plugin.hpp b/src/common/interface/Plugin.hpp
index d9665662..691fb523 100644
--- a/src/common/interface/Plugin.hpp
+++ b/src/common/interface/Plugin.hpp
@@ -32,6 +32,14 @@ public:
virtual Type type() const = 0;
virtual const std::string& uri() const = 0;
virtual const std::string& name() const = 0;
+
+ inline const char* type_uri() const {
+ if (type() == LV2) return "ingen:LV2";
+ else if (type() == LADSPA) return "ingen:LADSPA";
+ else if (type() == Internal) return "ingen:Internal";
+ else if (type() == Patch) return "ingen:Patch";
+ else return "";
+ }
};