diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-20 15:23:25 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-20 15:23:25 +0000 |
| commit | 34da16b7e626be4d96c3098b5265e2c008fb2d65 (patch) | |
| tree | cb4b5fc91507c2c93f76468b276f2e69aa7cd847 /src/plugins/PluginAPI.hpp | |
| parent | 71a95a581f86a801b1db24a417f41d9a395cab38 (diff) | |
plugin api: add addNotificationV2
Allows for issuing fancy notifs via api
Diffstat (limited to 'src/plugins/PluginAPI.hpp')
| -rw-r--r-- | src/plugins/PluginAPI.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/PluginAPI.hpp b/src/plugins/PluginAPI.hpp index 756a5631..80744bc3 100644 --- a/src/plugins/PluginAPI.hpp +++ b/src/plugins/PluginAPI.hpp @@ -19,6 +19,7 @@ See examples/examplePlugin for an example plugin #include "../helpers/Color.hpp" #include "HookSystem.hpp" +#include "../SharedDefs.hpp" #include <any> #include <functional> @@ -214,4 +215,19 @@ namespace HyprlandAPI { returns: true on success. False otherwise. */ APICALL bool removeDispatcher(HANDLE handle, const std::string& name); + + /* + Adds a notification. + + data has to contain: + - text: std::string or const char* + - time: uint64_t + - color: CColor + + data may contain: + - icon: eIcons + + returns: true on success. False otherwise. + */ + APICALL bool addNotificationV2(HANDLE handle, const std::unordered_map<std::string, std::any>& data); };
\ No newline at end of file |
