From a421a44310ee472fbee15f150d32b826a8371dbf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 8 Oct 2007 00:50:13 +0000 Subject: Fix serialization/connection bugs resulting from refactoring. git-svn-id: http://svn.drobilla.net/lad/ingen@842 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/interface/Plugin.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common/interface') 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 ""; + } }; -- cgit v1.2.1