summaryrefslogtreecommitdiff
path: root/src/plugins/PluginAPI.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-12-19 20:23:32 +0000
committerVaxry <vaxry@vaxry.net>2024-12-19 20:23:32 +0000
commit71dc9f6128b8d2e382b2a574d2d5f15e2d907f3a (patch)
tree0b677e89a5bd3ffe2942078bd91bb0933ceb8ee7 /src/plugins/PluginAPI.hpp
parentfd67ee9ecdc7207939fe1dcea9b81050ec7d58c4 (diff)
pluginAPI: add register dispatcher v2
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.