diff options
Diffstat (limited to 'src/plugins/PluginAPI.hpp')
| -rw-r--r-- | src/plugins/PluginAPI.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -115,6 +115,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<void(const std::string& key, const std::string& val)> fn); + + /* Get a config value. returns: a pointer to the config value struct, which is guaranteed to be valid for the life of this plugin, unless another `addConfigValue` is called afterwards. |
