From 0dcb9ae1f99cffcafac62a324f8f054cc212a880 Mon Sep 17 00:00:00 2001 From: Yuta Doi Date: Wed, 9 May 2018 17:15:42 +0900 Subject: Add conversion map role2app Change-Id: I1e194ecc9fb90ccb4c24e114ac1513ed19f0c0a3 Signed-off-by: Yuta Doi --- src/app.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/app.hpp') diff --git a/src/app.hpp b/src/app.hpp index 57ffee2..b7d6815 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -235,23 +235,22 @@ struct App { void surface_removed(uint32_t surface_id); private: -#if 1 // @@@@@ PolicyManager pm_; LayoutManager lm_; std::unordered_map role2surfaceid_; std::unordered_map app2role_; + std::unordered_map role2app_; std::unordered_map appid2role_; int allocateSurface(); void setSurfaceSize(const char* role, const char* area); - std::string roleToApp(std::string role); int loadAppDb(); #if 0 struct id_allocator app_id_alloc_; std::unordered_map appname2appid_; #endif -#endif + optional lookup_id(char const *name); optional lookup_name(int id); -- cgit 1.2.3-korg