aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hs-client.h')
-rw-r--r--src/hs-client.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/hs-client.h b/src/hs-client.h
index 5b384b1..ac4d004 100644
--- a/src/hs-client.h
+++ b/src/hs-client.h
@@ -46,18 +46,7 @@ private:
int showInformation(afb_req_t request);
typedef int (HS_Client::*func_handler)(afb_req_t);
- const std::unordered_map<std::string, func_handler> func_list {
- {"tap_shortcut", &HS_Client::tap_shortcut},
- {"showWindow", &HS_Client::showWindow},
- {"hideWindow", &HS_Client::hideWindow},
- {"replyShowWindow", &HS_Client::replyShowWindow},
- {"on_screen_message", &HS_Client::on_screen_message},
- {"on_screen_reply", &HS_Client::on_screen_reply},
- {"subscribe", &HS_Client::subscribe},
- {"unsubscribe", &HS_Client::unsubscribe},
- {"showNotification", &HS_Client::showNotification},
- {"showInformation", &HS_Client::showInformation}
- };
+ static const std::unordered_map<std::string, func_handler> func_list;
bool checkEvent(const char* event);
bool isSupportEvent(const char* event);