diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-11 17:13:56 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-11 17:13:56 +0900 |
commit | 690bef15acbffe7245b8a0b15ee4372f1ccea5d3 (patch) | |
tree | 0f0af5d3ba2c8e7cfc96caf39b187e85650e4ebf /src/hs-clientmanager.h | |
parent | 8e6374d5e56f3e00ed08b970f3a95cb7e24407e1 (diff) |
fix first time can not got areasandbox/zheng_wenlong/als2019_horizontal_
Diffstat (limited to 'src/hs-clientmanager.h')
-rw-r--r-- | src/hs-clientmanager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hs-clientmanager.h b/src/hs-clientmanager.h index c8bc48e..4cb1fad 100644 --- a/src/hs-clientmanager.h +++ b/src/hs-clientmanager.h @@ -71,7 +71,7 @@ public: int handleRequest(afb_req_t request, const char *verb, const char *appid = nullptr); int pushEvent(const char *event, struct json_object *param, std::string appid = ""); void removeClientCtxt(void *data); // don't use, internal only - void setStartupAppid(const std::string &appid) {startup_appid = appid;} + void setStartupAppidAndArea(const std::pair<std::string, std::string> pair) {startup_appid = pair.first;startup_area = pair.second;} bool isAppStarted(const std::string &appid); void addListener(listener_interface* listener); void removeListener(listener_interface* listener); @@ -89,7 +89,7 @@ private: std::unordered_map<std::string, HS_Client*> client_list; std::unordered_map<std::string, HS_ClientCtxt*> appid2ctxt; std::mutex mtx; - std::string startup_appid; + std::string startup_appid, startup_area; }; #endif // HOMESCREEN_CLIENTMANAGER_H
\ No newline at end of file |