summaryrefslogtreecommitdiff
path: root/src/plugins/PluginSystem.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-02-22 23:30:10 +0000
committerGitHub <noreply@github.com>2026-02-22 23:30:10 +0000
commitb88813c7efa4b7b0c5fe01471c5fa5b67a61dc7e (patch)
tree4454e82bc033d7e28a23ee372d0e3f48341d0aaa /src/plugins/PluginSystem.hpp
parentb4ee4674f9a74e3d602c7fb17bc09f79d221583c (diff)
event: refactor HookSystem into a typed event bus (#13333)
Refactors the old HookSystem into a typed event bus with clear separation, discovery and types.
Diffstat (limited to 'src/plugins/PluginSystem.hpp')
-rw-r--r--src/plugins/PluginSystem.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/PluginSystem.hpp b/src/plugins/PluginSystem.hpp
index ca980d12..85afaefa 100644
--- a/src/plugins/PluginSystem.hpp
+++ b/src/plugins/PluginSystem.hpp
@@ -12,22 +12,22 @@ class IHyprWindowDecoration;
class CPlugin {
public:
- std::string m_name = "";
- std::string m_description = "";
- std::string m_author = "";
- std::string m_version = "";
+ std::string m_name = "";
+ std::string m_description = "";
+ std::string m_author = "";
+ std::string m_version = "";
- std::string m_path = "";
+ std::string m_path = "";
- bool m_loadedWithConfig = false;
+ bool m_loadedWithConfig = false;
- HANDLE m_handle = nullptr;
+ HANDLE m_handle = nullptr;
- std::vector<IHyprWindowDecoration*> m_registeredDecorations;
- std::vector<std::pair<std::string, WP<HOOK_CALLBACK_FN>>> m_registeredCallbacks;
- std::vector<std::string> m_registeredDispatchers;
- std::vector<WP<SHyprCtlCommand>> m_registeredHyprctlCommands;
- std::vector<std::string> m_registeredAlgos;
+ std::vector<IHyprWindowDecoration*> m_registeredDecorations;
+ //std::vector<std::pair<std::string, WP<HOOK_CALLBACK_FN>>> m_registeredCallbacks;
+ std::vector<std::string> m_registeredDispatchers;
+ std::vector<WP<SHyprCtlCommand>> m_registeredHyprctlCommands;
+ std::vector<std::string> m_registeredAlgos;
};
class CPluginSystem {