diff options
| author | davc0n <dconti.dev@gmail.com> | 2025-05-03 16:06:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-03 16:06:24 +0200 |
| commit | 2d6ca96e07d1c1d1edc7694d93405ed800e6f7a6 (patch) | |
| tree | 917ec96de83eddc9159d58bb0bcf37a1a0398051 /src/plugins/PluginSystem.hpp | |
| parent | d9cad5e1b63f2e1e86eb54551c72d17ee4dd070d (diff) | |
plugins: refactor class member vars (#10257)
Diffstat (limited to 'src/plugins/PluginSystem.hpp')
| -rw-r--r-- | src/plugins/PluginSystem.hpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/plugins/PluginSystem.hpp b/src/plugins/PluginSystem.hpp index ba1dafc0..bbde2740 100644 --- a/src/plugins/PluginSystem.hpp +++ b/src/plugins/PluginSystem.hpp @@ -10,22 +10,22 @@ class IHyprWindowDecoration; class CPlugin { public: - std::string name = ""; - std::string description = ""; - std::string author = ""; - std::string version = ""; + std::string m_name = ""; + std::string m_description = ""; + std::string m_author = ""; + std::string m_version = ""; - std::string path = ""; + std::string m_path = ""; - bool m_bLoadedWithConfig = false; + bool m_loadedWithConfig = false; - HANDLE m_pHandle = nullptr; + HANDLE m_handle = nullptr; - std::vector<IHyprLayout*> registeredLayouts; - std::vector<IHyprWindowDecoration*> registeredDecorations; - std::vector<std::pair<std::string, WP<HOOK_CALLBACK_FN>>> registeredCallbacks; - std::vector<std::string> registeredDispatchers; - std::vector<SP<SHyprCtlCommand>> registeredHyprctlCommands; + std::vector<IHyprLayout*> m_registeredLayouts; + 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<SP<SHyprCtlCommand>> m_registeredHyprctlCommands; }; class CPluginSystem { @@ -42,12 +42,12 @@ class CPluginSystem { size_t pluginCount(); void sigGetPlugins(CPlugin** data, size_t len); - bool m_bAllowConfigVars = false; + bool m_allowConfigVars = false; private: - std::vector<UP<CPlugin>> m_vLoadedPlugins; + std::vector<UP<CPlugin>> m_loadedPlugins; - jmp_buf m_jbPluginFaultJumpBuf; + jmp_buf m_pluginFaultJumpBuf; std::expected<CPlugin*, std::string> loadPluginInternal(const std::string& path); }; |
