Implement attachApp
[apps/agl-service-windowmanager-2017.git] / src / window_manager.hpp
index 7bd0802..481d16c 100644 (file)
@@ -135,6 +135,17 @@ struct TmpClient
     unsigned pid;
 };
 
+struct TmpService
+{
+    std::string appid;  // Used to search who create service surface
+    std::string dest;   // Used to attach service to destination application
+    std::string service;// The name of service surface
+    std::string uuid;   // uuid
+    TmpService(const std::string& app, const std::string& dst,
+               const std::string& svc, const std::string& uuid)
+    : appid(app), dest(dst), service(svc), uuid(uuid) {}
+};
+
 class WindowManager
 {
   public:
@@ -249,7 +260,7 @@ class WindowManager
     rect_map area_info;
     // FOR CES DEMO
     std::unordered_map<unsigned, struct TmpClient> tmp_surface2app;
-    std::vector<struct TmpClient> tmp_apps;
+    std::vector<struct TmpService> tmp_services;
     static const char* kDefaultOldRoleDb;
 };