diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-10-22 16:09:07 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-10-23 10:18:57 +0800 |
commit | 789ecb879cc529400b290eb9750fd1f9298fc690 (patch) | |
tree | 712c3ae682f1f9e2522dc312fa7fb437fdaa1c74 /src/hs-client.cpp | |
parent | ea459cc8988c3e664c3f9d56d3a9929775d8b57b (diff) |
Migration to binding V3
migration homescreen-service from v2 to v3
Change-Id: I5e6d42c3dff528e46d0ca407e09eb1d05bacea80
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'src/hs-client.cpp')
-rw-r--r-- | src/hs-client.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/hs-client.cpp b/src/hs-client.cpp index 807b068..9fc9b61 100644 --- a/src/hs-client.cpp +++ b/src/hs-client.cpp @@ -30,10 +30,10 @@ static const char _type[] = "type"; * 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()); } /** @@ -84,7 +84,7 @@ int HS_Client::tap_shortcut(const char* appname) * 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; @@ -106,7 +106,7 @@ int HS_Client::on_screen_message(struct afb_req request, const char* message) * 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; @@ -128,7 +128,7 @@ int HS_Client::on_screen_reply(struct afb_req request, const char* message) * 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)); @@ -149,7 +149,7 @@ int HS_Client::subscribe(struct afb_req request, const char* 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)); |