diff options
Diffstat (limited to 'src/server/Event.cpp')
-rw-r--r-- | src/server/Event.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/server/Event.cpp b/src/server/Event.cpp index d69de2b9..76932550 100644 --- a/src/server/Event.cpp +++ b/src/server/Event.cpp @@ -15,6 +15,8 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "ingen/ClientInterface.hpp" + #include "Driver.hpp" #include "Engine.hpp" #include "Event.hpp" @@ -60,5 +62,21 @@ Event::post_process() ThreadManager::assert_not_thread(THREAD_PROCESS); } +void +Event::respond_ok() +{ + if (_request_client) { + _request_client->response_ok(_request_id); + } +} + +void +Event::respond_error(const std::string& msg) +{ + if (_request_client) { + _request_client->response_error(_request_id, msg); + } +} + } // namespace Server } // namespace Ingen |