From 06c11d8aa29e3a097c3ceb076b7d78f1c28a974f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 27 Feb 2013 12:00:18 +0000 Subject: parsing work packet --- rotord/rotor.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'rotord/rotor.h') diff --git a/rotord/rotor.h b/rotord/rotor.h index 4961b98..594465d 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -134,6 +134,22 @@ namespace Rotor { mutex.lock(); work_queue.push_back(item); mutex.unlock(); + } + std::string session_command(const std::vector& command){ + string response; + mutex.lock(); + if (command[1]=="audio") { + if (command[0]=="PUT") { + //get audio file location and initiate analysis + if (command.size()>1) { + //pass message to task + work_queue.push_back(command[2]); + response="1\n"; + } + } + } + mutex.unlock(); + return response; } Render_status get_status(); void cancel(); //interrupt locking process -- cgit v1.2.3