move layout manager task in do_allocate_resource
[apps/agl-service-windowmanager.git] / src / windowmanager-client.hpp
index 045055b..fccaba7 100644 (file)
@@ -34,6 +34,8 @@ public:
     WMClient(const std::string &appid, unsigned layerID, unsigned surfaceID, const std::string &role);
     WMClient(const std::string &appid, const std::string &role);
     virtual ~WMClient();
+
+    std::string appID();
     //WMClient::WMClient(const WMClient &obj);
     /* const std::vector<optional<unsigned>> surfaceIDList();
     optional<unsigned> surfaceID(role); */
@@ -43,7 +45,12 @@ public:
     std::vector<unsigned> surfaces;
     std::string id;
     std::vector<std::string> roles;
+#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;
 };
 }