From 61f72b854becd30d15447b6c675a673dffb65372 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Sat, 9 Jun 2018 16:04:26 +0900 Subject: Add new function addFloatingClient function Vacant function yet Change-Id: Id2ab7e75588cebcdb2a23f31c2586d3a2710c759 Signed-off-by: Kazumasa Mitsunari --- src/app.cpp | 2 +- src/applist.cpp | 5 +++++ src/applist.hpp | 6 ++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/app.cpp b/src/app.cpp index 324145f..69930a2 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -1314,7 +1314,7 @@ bool App::api_set_role(char const *appid, char const *drawing_name, unsigned pid } if(wm_err != WMError::SUCCESS){ HMI_ERROR("wm", "No floating surface for app: %s", id.c_str()); - //app_list->addFloatingClient(id, *lid, role); + app_list->addFloatingClient(id, *lid, role); HMI_NOTICE("wm", "%s : Waiting for surface creation", id.c_str()); return ret; } diff --git a/src/applist.cpp b/src/applist.cpp index 4e31c03..f5634fe 100644 --- a/src/applist.cpp +++ b/src/applist.cpp @@ -110,9 +110,14 @@ WMError AppList::lookUpFloatingSurface(unsigned pid, unsigned *surface) WMError AppList::lookUpFloatingSurface(const std::string &appid, unsigned *surface) { + HMI_ERROR("wm", "This function is not implemented"); return WMError::SUCCESS; } +void addFloatingClient(const std::string &appid, unsigned layer, const std::string &role) +{ +} + WMError AppList::appendRole(const std::string &id, const std::string &role, unsigned surface) { WMError wm_err = WMError::NO_ENTRY; diff --git a/src/applist.hpp b/src/applist.hpp index 20e7cb5..a5a895a 100644 --- a/src/applist.hpp +++ b/src/applist.hpp @@ -53,10 +53,12 @@ class AppList void removeSurface(unsigned surface); WMError lookUpFloatingSurface(unsigned pid, unsigned *surface); WMError lookUpFloatingSurface(const std::string &appid, unsigned *surface); - WMError appendRole(const std::string &id, const std::string &role, unsigned surface); + WMError appendRole(const std::string &appid, const std::string &role, unsigned surface); + void addFloatingClient(const std::string &appid, unsigned layer, const std::string &role); // Request Interface - unsigned currentRequestNumber() const; + unsigned + currentRequestNumber() const; unsigned getRequestNumber(const std::string &appid) const; unsigned addAllocateRequest(WMRequest req); /* TODO: consider, which is better WMClient or std::string appid? -- cgit 1.2.3-korg