Revert "Use appid between homescreen-service and apps"
[apps/agl-service-homescreen.git] / src / homescreen.c
index ee4b9b5..f1a8fcd 100644 (file)
@@ -47,7 +47,7 @@ static struct afb_event ev_reserved;
 
 static const char _error[] = "error";
 
-static const char _application_id[] = "application_id";
+static const char _application_name[] = "application_name";
 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_id   : application id
+ * - application_name   : application name
  *
  * #### 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_id);
+    const char* value = afb_req_value(request, _application_name);
     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_id, value);
+      _application_name, value);
       afb_event_push(ev_tap_shortcut, push_obj);
     } else {
       afb_req_fail_f(request, "failed", "called %s, Unknown palameter", __FUNCTION__);