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/CreatePatch.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/engine/events/CreatePatch.cpp') diff --git a/src/engine/events/CreatePatch.cpp b/src/engine/events/CreatePatch.cpp index 5d72f13a..c90e2c17 100644 --- a/src/engine/events/CreatePatch.cpp +++ b/src/engine/events/CreatePatch.cpp @@ -19,7 +19,7 @@ #include "raul/Path.hpp" #include "shared/LV2URIMap.hpp" #include "events/CreatePatch.hpp" -#include "Responder.hpp" +#include "Request.hpp" #include "PatchImpl.hpp" #include "NodeImpl.hpp" #include "PluginImpl.hpp" @@ -39,12 +39,12 @@ using namespace Shared; CreatePatch::CreatePatch( Engine& engine, - SharedPtr responder, + SharedPtr request, SampleCount timestamp, const Raul::Path& path, int poly, const Resource::Properties& properties) - : QueuedEvent(engine, responder, timestamp) + : QueuedEvent(engine, request, timestamp) , _path(path) , _patch(NULL) , _parent(NULL) @@ -134,32 +134,32 @@ void CreatePatch::post_process() { string msg; - if (_responder) { + if (_request) { switch (_error) { case NO_ERROR: - _responder->respond_ok(); + _request->respond_ok(); // Don't send ports/nodes that have been added since prepare() // (otherwise they would be sent twice) _engine.broadcaster()->send_object(_patch, false); break; case OBJECT_EXISTS: - _responder->respond_ok(); + _request->respond_ok(); /*string msg = "Unable to create patch: "; msg.append(_path).append(" already exists."); - _responder->respond_error(msg);*/ + _request->respond_error(msg);*/ break; case PARENT_NOT_FOUND: msg = "Unable to create patch: Parent "; msg.append(Path(_path).parent().str()).append(" not found."); - _responder->respond_error(msg); + _request->respond_error(msg); break; case INVALID_POLY: msg = "Unable to create patch "; - msg.append(_path.str()).append(": ").append("Invalid polyphony respondered."); - _responder->respond_error(msg); + msg.append(_path.str()).append(": ").append("Invalid polyphony requested."); + _request->respond_error(msg); break; default: - _responder->respond_error("Unable to load patch."); + _request->respond_error("Unable to load patch."); } } } -- cgit v1.2.1