aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-08-03 17:53:44 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-08-03 17:53:44 +0900
commit33d29e5584ed2ecc3bc6f897125f1d11cd8dbe52 (patch)
tree8bfc152c5791506d4f8a323890c61529a722f26c
parent321f08ed8d0a4d3b1f4bd486e8a4240f4d3443ee (diff)
Use appid between homescreen-service and appssandbox/zheng_wenlong/use_appid
Use appid between hss and apps, and check event destination in libhomescreen. So these is no need compare code when recived Event_TapShortcut Event. BUG-AGL: SPEC-1645 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
-rw-r--r--src/homescreen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/homescreen.c b/src/homescreen.c
index f1a8fcd..ee4b9b5 100644
--- a/src/homescreen.c
+++ b/src/homescreen.c
@@ -47,7 +47,7 @@ static struct afb_event ev_reserved;
static const char _error[] = "error";
-static const char _application_name[] = "application_name";
+static const char _application_id[] = "application_id";
static const char _display_message[] = "display_message";
static const char _reply_message[] = "reply_message";
@@ -69,7 +69,7 @@ static void pingSample(struct afb_req request)
*
* #### Parameters
* Request key
- * - application_name : application name
+ * - application_id : application id
*
* #### Return
* Nothing
@@ -80,14 +80,14 @@ static void tap_shortcut (struct afb_req request)
HMI_NOTICE("homescreen-service","called.");
int ret = 0;
- const char* value = afb_req_value(request, _application_name);
+ const char* value = afb_req_value(request, _application_id);
if (value) {
HMI_NOTICE("homescreen-service","request params = %s.", value);
struct json_object* push_obj = json_object_new_object();
hs_add_object_to_json_object_str( push_obj, 2,
- _application_name, value);
+ _application_id, value);
afb_event_push(ev_tap_shortcut, push_obj);
} else {
afb_req_fail_f(request, "failed", "called %s, Unknown palameter", __FUNCTION__);