summaryrefslogtreecommitdiffstats
path: root/src/server/ingen_http.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-21 21:45:14 +0000
committerDavid Robillard <d@drobilla.net>2011-10-21 21:45:14 +0000
commit0d4792af695d94a1e476adcdb65eed8a501ddbd4 (patch)
tree1c0fc824541fcdbb057f5a0909bc8cf7704dccfe /src/server/ingen_http.cpp
parent4ce6781bd6727fca68d4c99337f47a75d849e5ab (diff)
downloadingen-0d4792af695d94a1e476adcdb65eed8a501ddbd4.tar.gz
ingen-0d4792af695d94a1e476adcdb65eed8a501ddbd4.tar.bz2
ingen-0d4792af695d94a1e476adcdb65eed8a501ddbd4.zip
Make OSCEngineReceiver and HTTPEngineReceiver has-a ServerInterfaceImpl (instead of is-a).
Towards further modularization... git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3570 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/ingen_http.cpp')
-rw-r--r--src/server/ingen_http.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/server/ingen_http.cpp b/src/server/ingen_http.cpp
index dabd7360..c0bc0ce4 100644
--- a/src/server/ingen_http.cpp
+++ b/src/server/ingen_http.cpp
@@ -18,6 +18,7 @@
#include "ingen/shared/Module.hpp"
#include "ingen/shared/World.hpp"
#include "HTTPEngineReceiver.hpp"
+#include "ServerInterfaceImpl.hpp"
#include "Engine.hpp"
using namespace std;
@@ -26,12 +27,18 @@ using namespace Ingen;
struct IngenHTTPModule : public Ingen::Shared::Module {
void load(Ingen::Shared::World* world) {
Server::Engine* engine = (Server::Engine*)world->local_engine().get();
- SharedPtr<Server::HTTPEngineReceiver> interface(
+ SharedPtr<Server::ServerInterfaceImpl> interface(
+ new Server::ServerInterfaceImpl(*engine));
+
+ receiver = SharedPtr<Server::HTTPEngineReceiver>(
new Server::HTTPEngineReceiver(
*engine,
+ interface,
world->conf()->option("engine-port").get_int32()));
engine->add_event_source(interface);
}
+
+ SharedPtr<Server::HTTPEngineReceiver> receiver;
};
extern "C" {