aboutsummaryrefslogtreecommitdiffstats
path: root/src/allocate_queue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/allocate_queue.cpp')
-rw-r--r--src/allocate_queue.cpp47
1 files changed, 46 insertions, 1 deletions
diff --git a/src/allocate_queue.cpp b/src/allocate_queue.cpp
index 029c516..0d7a646 100644
--- a/src/allocate_queue.cpp
+++ b/src/allocate_queue.cpp
@@ -15,12 +15,57 @@
*/
#include "allocate_queue.hpp"
+#include <algorithm>
namespace wm {
AllocateRequestList::AllocateRequestList(){}
AllocateRequestList::~AllocateRequestList(){}
-void AllocateRequestList::addClient(WMClient* client){
+bool AllocateRequestList::addClient(WMClient* client){
+ return true;
}
+
+void AllocateRequestList::removeClient(const char* appid){
+ return true;
+}
+
+const WMClient* AllocateRequestList::lookUpClient(const char appid){
+ std::string key = std::string(appid);
+ auto itr = client_list.find(appid);
+ return (itr != client_list.end()) ? itr.second() : nullptr;
+}
+
+unsigned AllocateRequestList::getSequenceNumber(appid, role, area){
+ return 0;
+}
+
+bool AllocateRequestList::addAllocateRequest(WMClient &client, unsigned seq_num, std::string &task){
+ return true;
+}
+
+bool AllocateRequestList::requestFinished(){
+ return true;
+}
+
+unsigned AllocateRequestList::lookUpAllocatingApp(const char *appid){
+ return 1;
+}
+
+unsigned AllocateRequestList::currentSequnce(const char *appid){
+ return 1;
+}
+
+void AllocateRequestList::removeRequest(unsigned req_seq){
+
+}
+
+void AllocateRequestList::setCurrentSequence(unsigned req_seq){
+
+}
+
+bool AllocateRequestList::haveRequest(){
+ return true;
+}
+
} \ No newline at end of file