On the way to adding attach service surface
[apps/agl-service-windowmanager-2017.git] / src / window_manager.cpp
index 60470b4..0eeebcd 100644 (file)
@@ -514,6 +514,21 @@ bool WindowManager::api_client_set_render_order(char const* appid, const vector<
     return ret;
 }
 
+string api_client_attach_service_surface(const char* appid, const char* dest, const char* service_surface)
+{
+    string uuid = "", s_dest;
+    s_dest = dest;
+    // uuid = generate_uuid_randam());
+    auto client = g_app_list.lookUpClient(s_dest);
+    if(!client)
+    {
+        HMI_ERROR("Failed to look up destination [%s]", dest);
+        return uuid;
+    }
+    //string uuid = client->attachServiceSurface(appid);
+}
+
+
 result<json_object *> WindowManager::api_get_display_info()
 {
     Screen screen = this->lc->getScreenInfo();