- HMI_NOTICE("homescreen-service","Please input display_message");
- ret = AFB_EVENT_BAD_REQUEST;
- }
- return ret;
-}
-
-/**
- * on_screen_reply
- *
- * #### Parameters
- * - request: the request to bindings
- *
- * #### Return
- * result
- *
- */
-int HS_ClientManager::on_screen_reply(afb_req_t request)
-{
- int ret = 0;
- const char* value = afb_req_value(request, _reply_message);
- if (value) {
- HMI_NOTICE("homescreen-service","request params = %s.", value);
- std::lock_guard<std::mutex> lock(this->mtx);
- for(auto m : client_list) {
- m.second->on_screen_reply(request, value);
- }
- }
- else {
- HMI_NOTICE("homescreen-service","Please input reply_message");
- ret = AFB_EVENT_BAD_REQUEST;
- }
- return ret;
-}
-
-/**
- * subscribe
- *
- * #### Parameters
- * - request: the request to bindings
- *
- * #### Return
- * result
- *
- */
-int HS_ClientManager::subscribe(afb_req_t request)
-{
- int ret = 0;
- const char *value = afb_req_value(request, "event");
- HMI_NOTICE("homescreen-service","value is %s", value);
- if(value) {
- std::string appid(afb_req_get_application_id(request));