From 2d6ca96e07d1c1d1edc7694d93405ed800e6f7a6 Mon Sep 17 00:00:00 2001 From: davc0n Date: Sat, 3 May 2025 16:06:24 +0200 Subject: plugins: refactor class member vars (#10257) --- src/plugins/PluginSystem.hpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/plugins/PluginSystem.hpp') 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 registeredLayouts; - std::vector registeredDecorations; - std::vector>> registeredCallbacks; - std::vector registeredDispatchers; - std::vector> registeredHyprctlCommands; + std::vector m_registeredLayouts; + std::vector m_registeredDecorations; + std::vector>> m_registeredCallbacks; + std::vector m_registeredDispatchers; + std::vector> 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> m_vLoadedPlugins; + std::vector> m_loadedPlugins; - jmp_buf m_jbPluginFaultJumpBuf; + jmp_buf m_pluginFaultJumpBuf; std::expected loadPluginInternal(const std::string& path); }; -- cgit v1.2.3