diff options
author | David Robillard <d@drobilla.net> | 2008-11-09 03:45:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-11-09 03:45:35 +0000 |
commit | 72ffe8b96f492805b16df8d2ffa452e67046b974 (patch) | |
tree | 4c3e565f34e334c8cc3a58ab052ea2156eb4cfdc /src/common/interface/Plugin.hpp | |
parent | 5d1f579900182f283a1c21ad4e59daf7f035e219 (diff) | |
download | ingen-72ffe8b96f492805b16df8d2ffa452e67046b974.tar.gz ingen-72ffe8b96f492805b16df8d2ffa452e67046b974.tar.bz2 ingen-72ffe8b96f492805b16df8d2ffa452e67046b974.zip |
Add concept of 'Resource' and make plugins a resource (as well as graph objects).
Get rid of crufty imperative Plugin API.
Loading of plugin data from engine over HTTP.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1713 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/common/interface/Plugin.hpp')
-rw-r--r-- | src/common/interface/Plugin.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/interface/Plugin.hpp b/src/common/interface/Plugin.hpp index db67bf08..30b453f3 100644 --- a/src/common/interface/Plugin.hpp +++ b/src/common/interface/Plugin.hpp @@ -19,18 +19,19 @@ #define PLUGIN_H #include <string> +#include <iostream> +#include "interface/Resource.hpp" namespace Ingen { namespace Shared { -class Plugin +class Plugin : virtual public Resource { public: enum Type { LV2, LADSPA, Internal, Patch }; - virtual Type type() const = 0; - virtual const std::string& uri() const = 0; + virtual Type type() const = 0; inline const char* type_uri() const { switch (type()) { @@ -52,7 +53,8 @@ public: else if (uri == "ingen:Patch") return Patch; else - return Internal; + std::cerr << "WARNING: Unknown plugin type " << uri << std::endl; + return Internal; } }; |