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.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/allocate_queue.hpp b/src/allocate_queue.hpp
index 2a977b1..68b9008 100644
--- a/src/allocate_queue.hpp
+++ b/src/allocate_queue.hpp
@@ -27,7 +27,20 @@ public:
~AllocateRequestList();
AllocateRequestList(const AllocateRequestList &obj) = delete;
+ typedef std::function<void(const WMClient *)> onEndDraw;
+ typedef std::function<void(const WMClient *)> onReverted;
+
+ // Client Database Interface
void addClient(WMClient* client);
+ WMClient* loopUpClient(const char* appid);
+
+ // Request Interface
+ bool hasRequestingApp(const char *appid);
+ void revertRequestingState();
+ void removeAllRequesting();
+ bool addRequest(WMClient *, onEndDraw, onReverted);
+
+ //void revertRequestingState();//???
/* bool queue(int request_num);
bool pushTop(int request_num);