From 2dbd0cd81dff72aea42344188d20f7d7f6d20e1a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 18 Jul 2006 05:46:24 +0000 Subject: Removed globals (Om.h) git-svn-id: http://svn.drobilla.net/lad/ingen@96 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/server/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/progs/server') diff --git a/src/progs/server/main.cpp b/src/progs/server/main.cpp index fdd39c53..2429462a 100644 --- a/src/progs/server/main.cpp +++ b/src/progs/server/main.cpp @@ -20,8 +20,7 @@ #include "config.h" #include "util.h" #include "cmdline.h" -#include "Om.h" -#include "OmApp.h" +#include "Ingen.h" #ifdef HAVE_LASH #include "LashDriver.h" #endif @@ -40,7 +39,7 @@ catch_int(int) signal(SIGTERM, catch_int); std::cout << "[Main] Om interrupted." << std::endl; - Om::om->quit(); + Om::Ingen::instance().quit(); } @@ -133,19 +132,20 @@ main(int argc, char** argv) Om::set_denormal_flags(); - Om::om = new Om::OmApp(args_info.port_arg); + Om::Ingen::instantiate(args_info.port_arg); #ifdef HAVE_LASH Om::lash_driver = new Om::LashDriver(Om::om, lash_args); #endif - Om::om->main(); + Om::Ingen::instance().main(); #ifdef HAVE_LASH delete Om::lash_driver; #endif - delete Om::om; + // FIXME: leak + //delete Om::om; } return ret; -- cgit v1.2.1