summaryrefslogtreecommitdiff
path: root/src/plugins/PluginAPI.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/PluginAPI.hpp')
-rw-r--r--src/plugins/PluginAPI.hpp16
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