summaryrefslogtreecommitdiffstats
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-12-19 21:37:50 +0000
committerDavid Robillard <d@drobilla.net>2009-12-19 21:37:50 +0000
commit19045ab92aa7e996971584a0dc8780d1d58b498b (patch)
tree619c73deb7fd64ce31c5167490d1ae186dbb2695 /src/gui/gui.cpp
parent4613a2e15f1122ecf6830171de0ab18dc22fefff (diff)
downloadingen-19045ab92aa7e996971584a0dc8780d1d58b498b.tar.gz
ingen-19045ab92aa7e996971584a0dc8780d1d58b498b.tar.bz2
ingen-19045ab92aa7e996971584a0dc8780d1d58b498b.zip
New ingen module (library, not e.g. LV2 plugin) design.
Much cleaner interface and general usage of Ingen as a library. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2314 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index ab6a1297..d1ad6c99 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -15,29 +15,27 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "gui.hpp"
-#include "ConnectWindow.hpp"
+#include "module/Module.hpp"
#include "App.hpp"
-#include "Configuration.hpp"
-namespace Ingen {
-namespace GUI {
+struct IngenGUIModule : public Ingen::Shared::Module {
+ void load(Ingen::Shared::World* world) {
+ Ingen::GUI::App::init(world);
+ Ingen::GUI::App::run();
+ }
+};
+static IngenGUIModule* module = NULL;
-void
-init(int argc, char** argv, Ingen::Shared::World* world)
-{
- App::init(argc, argv, world);
-}
+extern "C" {
+Ingen::Shared::Module*
+ingen_module_load() {
+ if (!module)
+ module = new IngenGUIModule();
-void
-run()
-{
- App::run();
+ return module;
}
-
-} // namespace GUI
-} // namespace Ingen
+} // extern "C"