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/Learn.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/engine/events/Learn.cpp') diff --git a/src/engine/events/Learn.cpp b/src/engine/events/Learn.cpp index e700ab79..bf453bc3 100644 --- a/src/engine/events/Learn.cpp +++ b/src/engine/events/Learn.cpp @@ -23,7 +23,7 @@ #include "NodeImpl.hpp" #include "PluginImpl.hpp" #include "PortImpl.hpp" -#include "Responder.hpp" +#include "Request.hpp" #include "internals/Controller.hpp" using namespace std; @@ -32,8 +32,8 @@ namespace Ingen { namespace Events { -Learn::Learn(Engine& engine, SharedPtr responder, SampleCount timestamp, const Raul::Path& path) - : QueuedEvent(engine, responder, timestamp) +Learn::Learn(Engine& engine, SharedPtr request, SampleCount timestamp, const Raul::Path& path) + : QueuedEvent(engine, request, timestamp) , _error(NO_ERROR) , _path(path) , _object(NULL) @@ -81,14 +81,14 @@ void Learn::post_process() { if (_error == NO_ERROR) { - _responder->respond_ok(); + _request->respond_ok(); } else if (_object == NULL) { string msg = "Did not find node '"; msg.append(_path.str()).append("' for learn."); - _responder->respond_error(msg); + _request->respond_error(msg); } else { const string msg = string("Object '") + _path.str() + "' is not capable of learning."; - _responder->respond_error(msg); + _request->respond_error(msg); } } -- cgit v1.2.1