aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-clientmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hs-clientmanager.cpp')
-rw-r--r--src/hs-clientmanager.cpp12
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