aboutsummaryrefslogtreecommitdiffstats
path: root/src/allocate_queue.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/allocate_queue.hpp')
-rw-r--r--src/allocate_queue.hpp21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/allocate_queue.hpp b/src/allocate_queue.hpp
index 68b9008..df57370 100644
--- a/src/allocate_queue.hpp
+++ b/src/allocate_queue.hpp
@@ -31,14 +31,23 @@ public:
typedef std::function<void(const WMClient *)> onReverted;
// Client Database Interface
- void addClient(WMClient* client);
- WMClient* loopUpClient(const char* appid);
+ bool addClient(WMClient &client);
+ bool removeClient(const char* appid);
+ const WMClient* loopUpClient(const char* appid);
// Request Interface
- bool hasRequestingApp(const char *appid);
- void revertRequestingState();
- void removeAllRequesting();
- bool addRequest(WMClient *, onEndDraw, onReverted);
+ unsigned currentSequnceNumber();
+ unsigned getSequenceNumber(appid, role, area);
+ bool addAllocateRequest(WMClient &client, unsigned seq_num, std::string &task);
+ bool requestFinished();
+ unsigned lookUpAllocatingApp(const char *appid);
+ unsigned currentSequence();
+ void setEndDrawFinished(unsigned request_seq, const std::string &role);
+ void removeRequest(unsigned request_seq);
+ void setCurrentSequence(unsigned request_seq);
+ bool haveRequest();
+ /* void revertRequestingState();
+ void removeAllRequesting(); */
//void revertRequestingState();//???