summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Plugin.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-18 19:26:53 +0000
committerDavid Robillard <d@drobilla.net>2006-06-18 19:26:53 +0000
commit36f1e2ea3d2c7d20d8fa267a3a66438044e99e8e (patch)
tree963d5a6d87204fda9d8b1cd91f8810a6582bb41f /src/libs/engine/Plugin.h
parent00c8938a79d9e24547420d2a39421bcb7d8cc165 (diff)
downloadingen-36f1e2ea3d2c7d20d8fa267a3a66438044e99e8e.tar.gz
ingen-36f1e2ea3d2c7d20d8fa267a3a66438044e99e8e.tar.bz2
ingen-36f1e2ea3d2c7d20d8fa267a3a66438044e99e8e.zip
Reworked use of Plugin class in engine slightly (more RAII-ey)
git-svn-id: http://svn.drobilla.net/lad/grauph@56 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Plugin.h')
-rw-r--r--src/libs/engine/Plugin.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libs/engine/Plugin.h b/src/libs/engine/Plugin.h
index d350b1e8..fc7ed7c4 100644
--- a/src/libs/engine/Plugin.h
+++ b/src/libs/engine/Plugin.h
@@ -46,6 +46,12 @@ class Plugin
public:
enum Type { LV2, LADSPA, DSSI, Internal, Patch };
+ Plugin(Type type, const string& uri)
+ : m_type(type)
+ , m_uri(uri)
+ {}
+
+ // FIXME: remove
Plugin() : m_type(Internal), m_lib_path("/Om"),
m_id(0), m_library(NULL)
{
@@ -119,7 +125,7 @@ public:
// FIXME: ew
#ifdef HAVE_SLV2
- SLV2Plugin* slv2_plugin() { return m_slv2_plugin; }
+ SLV2Plugin* slv2_plugin() const { return m_slv2_plugin; }
void slv2_plugin(const SLV2Plugin* p) { m_slv2_plugin = p; }
#endif