From 188e34375827915a9832ddb1db4b94494bbee455 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Aug 2007 14:10:46 +0000 Subject: Clean up engine/client interfaces. Hide Response, now an internal engine implementation detail (and not a problem for script bindings anymore). git-svn-id: http://svn.drobilla.net/lad/ingen@666 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/events/RequestPluginsEvent.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/libs/engine/events/RequestPluginsEvent.cpp') diff --git a/src/libs/engine/events/RequestPluginsEvent.cpp b/src/libs/engine/events/RequestPluginsEvent.cpp index 50271b7f..005048ea 100644 --- a/src/libs/engine/events/RequestPluginsEvent.cpp +++ b/src/libs/engine/events/RequestPluginsEvent.cpp @@ -16,7 +16,7 @@ */ #include "RequestPluginsEvent.hpp" -#include "interface/Responder.hpp" +#include "Responder.hpp" #include "Engine.hpp" #include "ClientBroadcaster.hpp" #include "NodeFactory.hpp" @@ -24,7 +24,7 @@ namespace Ingen { -RequestPluginsEvent::RequestPluginsEvent(Engine& engine, SharedPtr responder, SampleCount timestamp) +RequestPluginsEvent::RequestPluginsEvent(Engine& engine, SharedPtr responder, SampleCount timestamp) : QueuedEvent(engine, responder, timestamp) { } @@ -33,8 +33,6 @@ RequestPluginsEvent::RequestPluginsEvent(Engine& engine, SharedPtrclient(_responder->client_uri()); - // Take a copy to send in the post processing thread (to avoid problems // because std::list isn't thread safe) _plugins = _engine.node_factory()->plugins(); @@ -46,8 +44,8 @@ RequestPluginsEvent::pre_process() void RequestPluginsEvent::post_process() { - if (_client) { - _engine.broadcaster()->send_plugins_to(_client, _plugins); + if (_responder->client()) { + _engine.broadcaster()->send_plugins_to(_responder->client(), _plugins); _responder->respond_ok(); } else { _responder->respond_error("Unable to find client to send plugins"); -- cgit v1.2.1