6 #include <unordered_map>
10 #include "hs-clientmanager.h"
11 #include "hs-appinfo.h"
14 HS_ClientManager *client_manager; // the connection session manager
15 HS_AppInfo *app_info; // application info
17 hs_instance() : client_manager(HS_ClientManager::instance()), app_info(HS_AppInfo::instance()) {}
18 int init(afb_api_t api);
19 void setEventHook(const char *event, const event_hook_func f);
20 void onEvent(afb_api_t api, const char *event, struct json_object *object);
22 std::unordered_map<std::string, std::list<event_hook_func>> event_hook_list;