Code Review
/
apps
/
agl-service-homescreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
homescreen/hs-proxy: Guard against empty appids
[apps/agl-service-homescreen.git]
/
src
/
hs-helper.h
diff --git
a/src/hs-helper.h
b/src/hs-helper.h
index
cc6fb89
..
f57799d
100644
(file)
--- 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);
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*/
#endif /*HOMESCREEN_HELPER_H*/