From af9440152e19cee74b675e53087e032b9ccb5459 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 29 Oct 2023 16:59:50 +0000 Subject: pluginapi: add a config keyword adding method --- src/plugins/PluginAPI.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/PluginAPI.hpp') diff --git a/src/plugins/PluginAPI.hpp b/src/plugins/PluginAPI.hpp index 36cdbe63..30c6b4c7 100644 --- a/src/plugins/PluginAPI.hpp +++ b/src/plugins/PluginAPI.hpp @@ -114,6 +114,14 @@ namespace HyprlandAPI { */ APICALL bool addConfigValue(HANDLE handle, const std::string& name, const SConfigValue& value); + /* + Add a config keyword. + This method may only be called in "pluginInit" + + returns: true on success, false on fail + */ + APICALL bool addConfigKeyword(HANDLE handle, const std::string& name, std::function fn); + /* Get a config value. -- cgit v1.2.3