aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-helper.h
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-03-26 14:55:18 +0800
committerJosé Bollo <jose.bollo@iot.bzh>2019-03-28 11:00:52 +0000
commit2d1c8cc2f43d021ad75adc16f0606fb52615d9a6 (patch)
treea5907015c127922568f291a5b1451600380bd960 /src/hs-helper.h
parentaa43a07d4e86421aefec8c603018d14f5e249087 (diff)
Impove event process
1. manager event list in hs_instance. 2. add setEventHook interface to hook event. Change-Id: I65a64f2d16343eb68d22fd1ad9d5fbf565f5967a Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'src/hs-helper.h')
-rw-r--r--src/hs-helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hs-helper.h b/src/hs-helper.h
index cc6fb89..f57799d 100644
--- a/src/hs-helper.h
+++ b/src/hs-helper.h
@@ -54,4 +54,7 @@ void hs_add_object_to_json_object_func(struct json_object* j_obj, const char* ve
int hs_search_event_name_index(const char* value);
std::string get_application_id(const afb_req_t request);
+typedef int (*event_hook_func)(afb_api_t api, const char *event, struct json_object *object);
+void setEventHook(const char *event, const event_hook_func f);
+
#endif /*HOMESCREEN_HELPER_H*/