summaryrefslogtreecommitdiffstats
path: root/src/engine/events/Get.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-03 20:39:18 +0000
committerDavid Robillard <d@drobilla.net>2010-02-03 20:39:18 +0000
commitaef3c9348218029a077f40081fd078a9e2ee85ca (patch)
treeb77d6ef50f66004129a03cb0751b653336c50f14 /src/engine/events/Get.cpp
parent3e495d47f06cca50521076e8f77a966dfec521ab (diff)
downloadingen-aef3c9348218029a077f40081fd078a9e2ee85ca.tar.gz
ingen-aef3c9348218029a077f40081fd078a9e2ee85ca.tar.bz2
ingen-aef3c9348218029a077f40081fd078a9e2ee85ca.zip
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
Diffstat (limited to 'src/engine/events/Get.cpp')
-rw-r--r--src/engine/events/Get.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/engine/events/Get.cpp b/src/engine/events/Get.cpp
index 6901adc3..214bb33d 100644
--- a/src/engine/events/Get.cpp
+++ b/src/engine/events/Get.cpp
@@ -17,7 +17,7 @@
#include "Get.hpp"
#include "interface/ClientInterface.hpp"
-#include "Responder.hpp"
+#include "Request.hpp"
#include "Engine.hpp"
#include "EngineStore.hpp"
#include "ClientBroadcaster.hpp"
@@ -35,10 +35,10 @@ namespace Events {
Get::Get(
Engine& engine,
- SharedPtr<Responder> responder,
+ SharedPtr<Request> request,
SampleCount timestamp,
const URI& uri)
- : QueuedEvent(engine, responder, timestamp)
+ : QueuedEvent(engine, request, timestamp)
, _uri(uri)
, _object(NULL)
, _plugin(NULL)
@@ -70,15 +70,15 @@ void
Get::post_process()
{
if (!_object && !_plugin) {
- _responder->respond_error("Unable to find object requested.");
- } else if (_responder->client()) {
- _responder->respond_ok();
+ _request->respond_error("Unable to find object requested.");
+ } else if (_request->client()) {
+ _request->respond_ok();
if (_object)
- _responder->client()->put(_uri, _object->properties());
+ _request->client()->put(_uri, _object->properties());
else if (_plugin)
- _responder->client()->put(_uri, _plugin->properties());
+ _request->client()->put(_uri, _plugin->properties());
} else {
- _responder->respond_error("Unable to find client to send object.");
+ _request->respond_error("Unable to find client to send object.");
}
}