aboutsummaryrefslogtreecommitdiffstats
path: root/src/windowmanager-client.hpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-05-31 19:13:33 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-05-31 19:13:33 +0900
commit497463754856362822c9d7e3c6b082f0467478a0 (patch)
tree5d2e1ad7088d542d7193ce153bdecd1399ef96ce /src/windowmanager-client.hpp
parentdfe4aee045113eceaeabd327291f94583e7b13d3 (diff)
Add new functions to windowmanager-client
Change-Id: Ib4d69d903469ed5f1a3d39553098f6995f593c59 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/windowmanager-client.hpp')
-rw-r--r--src/windowmanager-client.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/windowmanager-client.hpp b/src/windowmanager-client.hpp
index 833187a..33024b0 100644
--- a/src/windowmanager-client.hpp
+++ b/src/windowmanager-client.hpp
@@ -39,22 +39,23 @@ class WMClient
virtual ~WMClient();
std::string appID();
- //WMClient::WMClient(const WMClient &obj);
- /* const std::vector<optional<unsigned>> surfaceIDList();
- optional<unsigned> surfaceID(role); */
+ void registerLayer(unsigned layerID);
+ bool addSurface(const std::string& role, unsigned surface);
+ bool removeSurfaceIfExist(unsigned surfaceID);
+ bool removeRole(const std::string& role);
+
+ void dumpInfo();
private:
unsigned layer;
- std::vector<unsigned> surfaces;
std::string id;
- std::vector<std::string> roles;
+ std::unordered_map<std::string, unsigned> role2surface;
#if GTEST_ENABLED
// This is for unit test. afb_make_event occurs sig11 if call not in afb-binding
std::unordered_map<std::string, std::string> event_list;
#else
std::unordered_map<std::string, struct afb_event> event_list;
#endif
- //std::vector<Task *> requestingTask;
};
} // namespace wm