summaryrefslogtreecommitdiff
path: root/src/plugins/PluginAPI.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/PluginAPI.hpp')
-rw-r--r--src/plugins/PluginAPI.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/plugins/PluginAPI.hpp b/src/plugins/PluginAPI.hpp
index 6b8c35f0..96c32bf1 100644
--- a/src/plugins/PluginAPI.hpp
+++ b/src/plugins/PluginAPI.hpp
@@ -236,8 +236,17 @@ namespace HyprlandAPI {
Adds a keybind dispatcher.
returns: true on success. False otherwise.
+
+ DEPRECATED: use addDispatcherV2
+ */
+ APICALL [[deprecated]] bool addDispatcher(HANDLE handle, const std::string& name, std::function<void(std::string)> handler);
+
+ /*
+ Adds a keybind dispatcher.
+
+ returns: true on success. False otherwise.
*/
- APICALL bool addDispatcher(HANDLE handle, const std::string& name, std::function<void(std::string)> handler);
+ APICALL bool addDispatcherV2(HANDLE handle, const std::string& name, std::function<SDispatchResult(std::string)> handler);
/*
Removes a keybind dispatcher.