summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-17 03:11:41 +0000
committerDavid Robillard <d@drobilla.net>2011-02-17 03:11:41 +0000
commitdf7a87fe043440d99b23378efc6664b5deed8b42 (patch)
treefaf7f20f1dc209f0e16b565008df58e1af096585 /src/serialisation
parent8c6a7c4ad5f5cb6b3b583aefbfe6b0cf57414294 (diff)
downloadingen-df7a87fe043440d99b23378efc6664b5deed8b42.tar.gz
ingen-df7a87fe043440d99b23378efc6664b5deed8b42.tar.bz2
ingen-df7a87fe043440d99b23378efc6664b5deed8b42.zip
Fix "Ingen as an LV2", i.e. make Ingen bundles working LV2 plugins.
Fix module loading/unloading (don't use statics). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2973 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/serialisation.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/serialisation/serialisation.cpp b/src/serialisation/serialisation.cpp
index 91c435e3..e6780ed6 100644
--- a/src/serialisation/serialisation.cpp
+++ b/src/serialisation/serialisation.cpp
@@ -22,7 +22,7 @@
using namespace Ingen;
-struct IngenModule : public Shared::Module {
+struct IngenSerialisationModule : public Shared::Module {
void load(Shared::World* world) {
world->set_parser(SharedPtr<Serialisation::Parser>(
new Serialisation::Parser()));
@@ -31,16 +31,11 @@ struct IngenModule : public Shared::Module {
}
};
-static IngenModule* module = NULL;
-
extern "C" {
Shared::Module*
ingen_module_load() {
- if (!module)
- module = new IngenModule();
-
- return module;
+ return new IngenSerialisationModule();
}
} // extern "C"