summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Plugin.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-20 03:58:56 +0000
committerDavid Robillard <d@drobilla.net>2007-04-20 03:58:56 +0000
commit884d4320251e5a63763c47c3822770e5177d1c9a (patch)
treef3d2106780fddeda1d091bea1cc32a8d1b3291c9 /src/libs/engine/Plugin.h
parent6b3443ebabdeec0b908fb505e30c1422b96589b7 (diff)
downloadingen-884d4320251e5a63763c47c3822770e5177d1c9a.tar.gz
ingen-884d4320251e5a63763c47c3822770e5177d1c9a.tar.bz2
ingen-884d4320251e5a63763c47c3822770e5177d1c9a.zip
Update for SLV2 API changes.
git-svn-id: http://svn.drobilla.net/lad/ingen@461 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Plugin.h')
-rw-r--r--src/libs/engine/Plugin.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/libs/engine/Plugin.h b/src/libs/engine/Plugin.h
index d1a72fac..47faddc1 100644
--- a/src/libs/engine/Plugin.h
+++ b/src/libs/engine/Plugin.h
@@ -60,6 +60,7 @@ public:
#endif
{}
+#if 0
// FIXME: remove
Plugin() : _type(Internal), _lib_path("/Ingen"),
_id(0), _library(NULL)
@@ -68,16 +69,8 @@ public:
_slv2_plugin = NULL;
#endif
}
-
-#ifdef HAVE_SLV2
- ~Plugin()
- {
- if (_slv2_plugin)
- slv2_plugin_free(_slv2_plugin);
- }
#endif
-
Plugin(const Plugin* const copy) {
// Copying only allowed for Internal plugins. Bit of a hack, but
// allows the PluginInfo to be defined in the Node class which keeps
@@ -135,9 +128,8 @@ public:
// FIXME: ew
#ifdef HAVE_SLV2
- SLV2Plugin slv2_plugin() const { return _slv2_plugin; }
- void slv2_plugin(const SLV2Plugin p) { _slv2_plugin = slv2_plugin_duplicate(p); }
-
+ SLV2Plugin slv2_plugin() const { return _slv2_plugin; }
+ void slv2_plugin(SLV2Plugin p) { _slv2_plugin = p; }
#endif
Node* instantiate(const string& name, size_t poly, Ingen::Patch* parent, SampleRate srate, size_t buffer_size);