From 71dc9f6128b8d2e382b2a574d2d5f15e2d907f3a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 19 Dec 2024 20:23:32 +0000 Subject: pluginAPI: add register dispatcher v2 --- src/plugins/PluginAPI.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/plugins/PluginAPI.hpp') 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 @@ -232,12 +232,21 @@ namespace HyprlandAPI { */ APICALL bool removeWindowDecoration(HANDLE handle, IHyprWindowDecoration* pDecoration); + /* + 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 handler); + /* Adds a keybind dispatcher. returns: true on success. False otherwise. */ - APICALL bool addDispatcher(HANDLE handle, const std::string& name, std::function handler); + APICALL bool addDispatcherV2(HANDLE handle, const std::string& name, std::function handler); /* Removes a keybind dispatcher. -- cgit v1.2.3