From aef3c9348218029a077f40081fd078a9e2ee85ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Feb 2010 20:39:18 +0000 Subject: Responder => Request, and handle EventSource unblocking from Request (simplify Event interfaces). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2417 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/events/RequestAllObjects.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/engine/events/RequestAllObjects.cpp') diff --git a/src/engine/events/RequestAllObjects.cpp b/src/engine/events/RequestAllObjects.cpp index 91e58e1e..98119e07 100644 --- a/src/engine/events/RequestAllObjects.cpp +++ b/src/engine/events/RequestAllObjects.cpp @@ -16,7 +16,7 @@ */ #include "events/RequestAllObjects.hpp" -#include "Responder.hpp" +#include "Request.hpp" #include "Engine.hpp" #include "ObjectSender.hpp" #include "ClientBroadcaster.hpp" @@ -27,8 +27,8 @@ namespace Ingen { namespace Events { -RequestAllObjects::RequestAllObjects(Engine& engine, SharedPtr responder, SampleCount timestamp) -: QueuedEvent(engine, responder, timestamp) +RequestAllObjects::RequestAllObjects(Engine& engine, SharedPtr request, SampleCount timestamp) +: QueuedEvent(engine, request, timestamp) { } @@ -43,16 +43,16 @@ RequestAllObjects::pre_process() void RequestAllObjects::post_process() { - if (_responder->client()) { - _responder->respond_ok(); + if (_request->client()) { + _request->respond_ok(); // Everything is a child of the root patch, so this sends it all PatchImpl* root = _engine.engine_store()->find_patch("/"); - if (root && _responder->client()) - ObjectSender::send_object(_responder->client(), root, true); + if (root && _request->client()) + ObjectSender::send_object(_request->client(), root, true); } else { - _responder->respond_error("Unable to find client to send all objects"); + _request->respond_error("Unable to find client to send all objects"); } } -- cgit v1.2.1