Improve HS_ClientManager and fix issue
[apps/agl-service-homescreen.git] / src / hs-client.cpp
index 9fc9b61..c683c66 100644 (file)
@@ -71,7 +71,8 @@ int HS_Client::tap_shortcut(const char* appname)
     struct json_object* push_obj = json_object_new_object();
     hs_add_object_to_json_object_str( push_obj, 4, _application_name, appname,
     _type, __FUNCTION__);
-    return afb_event_push(my_event, push_obj);
+    afb_event_push(my_event, push_obj);
+    return 0;
 }
 
 /**
@@ -93,7 +94,8 @@ int HS_Client::on_screen_message(afb_req_t request, const char* message)
     struct json_object* push_obj = json_object_new_object();
     hs_add_object_to_json_object_str( push_obj, 4, _display_message, message,
     _type, __FUNCTION__);
-    return afb_event_push(my_event, push_obj);
+    afb_event_push(my_event, push_obj);
+    return 0;
 }
 
 /**
@@ -115,7 +117,8 @@ int HS_Client::on_screen_reply(afb_req_t request, const char* message)
     struct json_object* push_obj = json_object_new_object();
     hs_add_object_to_json_object_str( push_obj, 4, _reply_message, message,
     _type, __FUNCTION__);
-    return afb_event_push(my_event, push_obj);
+    afb_event_push(my_event, push_obj);
+    return 0;
 }
 
 /**