X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fallocate_queue.hpp;h=68b9008423f64e88fcfa887bb1a84128c53358fa;hb=e624fd6eb09dbe5729389437263e1e116e58fdbd;hp=2a977b12bb7d4e041fcf5fdc0e3b51a3c8cf50a6;hpb=d31270592190870d13c98460d351697350c67cc2;p=apps%2Fagl-service-windowmanager.git 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 onEndDraw; + typedef std::function 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);