X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-helper.h;fp=src%2Fhs-helper.h;h=f57799daf56639df20e7fbce7fb5191386d7dd50;hb=a7e49d93b4dd03f8ce3b77f831f9293ba5a3de01;hp=cc6fb89f9991b61081f5ad6db01d7a0098aba98f;hpb=2f7789558c98d8b79b41d62ac97f5bd6de557dc9;p=apps%2Fagl-service-homescreen.git 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*/