From 58d5aa69c638b5e6d59f858516385e01fe248031 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Mon, 6 Aug 2018 12:00:28 +0900 Subject: Use appid between homescreen-service and apps Use appid between hss and apps, and check event destination in libhomescreen. So these is no need compare code when recived Event_TapShortcut Event. [Patch Sets 2] Make a copy of the string returned by getenv. BUG-AGL: SPEC-1645 Change-Id: I042015ee92c4c142418b1ac15d51a9408e219757 Signed-off-by: zheng_wenlong Signed-off-by: Scott Murray --- include/libhomescreen.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/libhomescreen.hpp') diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index 4a92059..ea35d1e 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -51,7 +51,7 @@ public: /* Method */ int init(const int port, const std::string& token); - int tapShortcut(const char* application_name); + int tapShortcut(const char* application_id); int onScreenMessage(const char* display_message); int onScreenReply(const char* reply_message); @@ -77,6 +77,7 @@ private: struct afb_wsj1* sp_websock; struct afb_wsj1_itf minterface; sd_event* mploop; + std::string mapp_id; std::string muri; int mport = 2000; -- cgit 1.2.3-korg