From 884d4320251e5a63763c47c3822770e5177d1c9a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 Apr 2007 03:58:56 +0000 Subject: Update for SLV2 API changes. git-svn-id: http://svn.drobilla.net/lad/ingen@461 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/NodeFactory.cpp | 2 +- src/libs/engine/Plugin.h | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'src/libs') diff --git a/src/libs/engine/NodeFactory.cpp b/src/libs/engine/NodeFactory.cpp index 1214cc20..8386667b 100644 --- a/src/libs/engine/NodeFactory.cpp +++ b/src/libs/engine/NodeFactory.cpp @@ -306,7 +306,7 @@ NodeFactory::load_lv2_plugins() } } - slv2_plugins_free(plugins); + slv2_plugins_free(_world, plugins); } 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); -- cgit v1.2.1