* None
*
*/
-HS_Client::HS_Client(struct afb_req request, std::string id) : my_id(id)
+HS_Client::HS_Client(afb_req_t request, std::string id) : my_id(id)
{
HMI_NOTICE("homescreen-service","called.");
- my_event = afb_daemon_make_event(id.c_str());
+ my_event = afb_api_make_event(request->api, id.c_str());
}
/**
* result
*
*/
-int HS_Client::on_screen_message(struct afb_req request, const char* message)
+int HS_Client::on_screen_message(afb_req_t request, const char* message)
{
if(!checkEvent(__FUNCTION__))
return 0;
* result
*
*/
-int HS_Client::on_screen_reply(struct afb_req request, const char* message)
+int HS_Client::on_screen_reply(afb_req_t request, const char* message)
{
if(!checkEvent(__FUNCTION__))
return 0;
* result
*
*/
-int HS_Client::subscribe(struct afb_req request, const char* event)
+int HS_Client::subscribe(afb_req_t request, const char* event)
{
int ret = 0;
auto ip = event_list.find(std::string(event));
* result
*
*/
-int HS_Client::unsubscribe(struct afb_req request, const char* event)
+int HS_Client::unsubscribe(afb_req_t request, const char* event)
{
int ret = 0;
event_list.erase(std::string(event));