[Local]:2nd step for blocking sequence
[apps/agl-service-windowmanager.git] / src / allocate_queue.hpp
index 2a977b1..68b9008 100644 (file)
@@ -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);