aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.hpp
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2018-05-09 17:15:42 +0900
committerYuta Doi <yuta-d@witz-inc.co.jp>2018-05-09 17:15:42 +0900
commit0dcb9ae1f99cffcafac62a324f8f054cc212a880 (patch)
tree1ccf8a573689b52e59fc484bdd50a3c25d69ea9d /src/app.hpp
parente6d867b95a5e32ce5f50106b05020bd9888ae8a3 (diff)
Add conversion map role2app
Change-Id: I1e194ecc9fb90ccb4c24e114ac1513ed19f0c0a3 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/app.hpp')
-rw-r--r--src/app.hpp5
1 files changed, 2 insertions, 3 deletions
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<std::string, int> role2surfaceid_;
std::unordered_map<std::string, std::string> app2role_;
+ std::unordered_map<std::string, std::string> role2app_;
std::unordered_map<int, int> 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<std::string, int> appname2appid_;
#endif
-#endif
+
optional<int> lookup_id(char const *name);
optional<std::string> lookup_name(int id);