plugins: refactor class member vars (#10257)
This commit is contained in:
parent
d9cad5e1b6
commit
2d6ca96e07
7 changed files with 128 additions and 129 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue