diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-01-08 09:40:05 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-01-08 09:40:05 +0800 |
commit | 64b268e9c1151c1ccff3b9a20cbe3901f347e9ee (patch) | |
tree | 86448680504c91d0f988ba944cc8e9708c9e0637 /src/hs-clientmanager.cpp | |
parent | 0a47c007af262ac91bfa219a7b848aa0046005b3 (diff) |
add event tabble
Change-Id: Ic6897f79ecc63ee869b51915b88679d382b95ea6
Diffstat (limited to 'src/hs-clientmanager.cpp')
-rw-r--r-- | src/hs-clientmanager.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/hs-clientmanager.cpp b/src/hs-clientmanager.cpp index 9fe8b96..f6c18c0 100644 --- a/src/hs-clientmanager.cpp +++ b/src/hs-clientmanager.cpp @@ -500,3 +500,15 @@ int HS_ClientManager::pushEvent(const char *event, struct json_object *param, st return 0; } + +int HS_ClientManager::handleRequest(const char *verb, afb_req_t request) +{ + HMI_NOTICE("homescreen-service","verb = %s", verb); + int ret = AFB_EVENT_BAD_REQUEST; + auto ip = func_list.find(std::string(verb)); + if(ip != func_list.end()) { + HMI_NOTICE("homescreen-service","verb found"); + ret = (this->*(ip->second))(request); + } + return ret; +}
\ No newline at end of file |