From d940d40081bae1e2e2e077b6ee08743465ae4f27 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 19 Apr 2011 16:18:03 +0000 Subject: Fix building with HTTP support (fixes #674). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3160 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/HTTPEngineReceiver.cpp | 2 +- src/engine/ingen_http.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/engine') 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 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 interface( + new Engine::HTTPEngineReceiver( + *engine, + world->conf()->option("engine-port").get_int32())); + engine->add_event_source(interface); } }; -- cgit v1.2.1