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.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/PluginAPI.hpp b/src/plugins/PluginAPI.hpp
index 12e7c128..e7a6c899 100644
--- a/src/plugins/PluginAPI.hpp
+++ b/src/plugins/PluginAPI.hpp
@@ -273,6 +273,20 @@ namespace HyprlandAPI {
for a different hash.
*/
APICALL SVersionInfo getHyprlandVersion(HANDLE handle);
+
+ /*
+ Registers a hyprctl command
+
+ returns: Pointer. Nullptr on fail.
+ */
+ APICALL std::shared_ptr<SHyprCtlCommand> registerHyprCtlCommand(HANDLE handle, SHyprCtlCommand cmd);
+
+ /*
+ Unregisters a hyprctl command
+
+ returns: true on success. False otherwise.
+ */
+ APICALL bool unregisterHyprCtlCommand(HANDLE handle, std::shared_ptr<SHyprCtlCommand> cmd);
};
/*