From 42b469037c1b2bb55cd400a24cabfa29e7ae1ab2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 15 Apr 2011 20:20:58 +0000 Subject: Remove pointless module interface to ingen_module (World). Having a dlopen interface to this code makes no sense since it must be linked against to load modules in the first place. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3146 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/ingen_lv2.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/engine') diff --git a/src/engine/ingen_lv2.cpp b/src/engine/ingen_lv2.cpp index b259de11..f09540ed 100644 --- a/src/engine/ingen_lv2.cpp +++ b/src/engine/ingen_lv2.cpp @@ -41,7 +41,6 @@ #include "engine/ThreadManager.hpp" #include "ingen/EngineInterface.hpp" #include "module/World.hpp" -#include "module/ingen_module.hpp" #include "serialisation/Parser.hpp" #include "shared/Configuration.hpp" #include "shared/runtime_paths.hpp" @@ -258,9 +257,9 @@ ingen_instantiate(const LV2_Descriptor* descriptor, } IngenPlugin* plugin = (IngenPlugin*)malloc(sizeof(IngenPlugin)); - plugin->world = ingen_world_new(&lib.conf, lib.argc, lib.argv); + plugin->world = new World(&lib.conf, lib.argc, lib.argv); if (!plugin->world->load("ingen_serialisation")) { - ingen_world_free(plugin->world); + delete plugin->world; return NULL; } @@ -350,7 +349,7 @@ ingen_cleanup(LV2_Handle instance) IngenPlugin* me = (IngenPlugin*)instance; me->world->set_local_engine(SharedPtr()); me->world->set_engine(SharedPtr()); - ingen_world_free(me->world); + delete me->world; free(instance); } @@ -387,9 +386,9 @@ Lib::Lib() Ingen::Shared::set_bundle_path_from_code((void*)&lv2_descriptor); - Ingen::Shared::World* world = ingen_world_new(&conf, argc, argv); + Ingen::Shared::World* world = new Ingen::Shared::World(&conf, argc, argv); if (!world->load("ingen_serialisation")) { - ingen_world_free(world); + delete world; return; } @@ -407,7 +406,7 @@ Lib::Lib() i->file_uri))); } - ingen_world_free(world); + delete world; } /** Library destructor (called on shared library unload) */ -- cgit v1.2.1