diff options
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/HTTPEngineReceiver.cpp | 2 | ||||
-rw-r--r-- | src/engine/ingen_http.cpp | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/engine/HTTPEngineReceiver.cpp b/src/engine/HTTPEngineReceiver.cpp index 196a8ad6..22de974e 100644 --- a/src/engine/HTTPEngineReceiver.cpp +++ b/src/engine/HTTPEngineReceiver.cpp @@ -61,7 +61,7 @@ HTTPEngineReceiver::HTTPEngineReceiver(Engine& engine, uint16_t port) LOG(info) << "Started HTTP server on port " << soup_server_get_port(_server) << endl; if (!engine.world()->parser() || !engine.world()->serialiser()) - engine.world()->load("ingen_serialisation"); + engine.world()->load_module("ingen_serialisation"); Thread::set_name("HTTPEngineReceiver"); } diff --git a/src/engine/ingen_http.cpp b/src/engine/ingen_http.cpp index 9e41ff9c..c758e10b 100644 --- a/src/engine/ingen_http.cpp +++ b/src/engine/ingen_http.cpp @@ -26,10 +26,12 @@ using namespace Ingen; struct IngenHTTPModule : public Ingen::Shared::Module { void load(Ingen::Shared::World* world) { - SharedPtr<HTTPEngineReceiver> interface( - new Ingen::HTTPEngineReceiver(*world->local_engine().get(), - world->conf()->option("engine-port").get_int32())); - world->local_engine()->add_event_source(interface); + Engine::Engine* engine = (Engine::Engine*)world->local_engine().get(); + SharedPtr<Engine::HTTPEngineReceiver> interface( + new Engine::HTTPEngineReceiver( + *engine, + world->conf()->option("engine-port").get_int32())); + engine->add_event_source(interface); } }; |