mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 21:13:48 -07:00
Unload plugins on compositor cleanup (#1662)
This commit is contained in:
committed by
GitHub
parent
07b98952bc
commit
5c93f6947a
@@ -29,6 +29,7 @@ class CPluginSystem {
|
||||
|
||||
CPlugin* loadPlugin(const std::string& path);
|
||||
void unloadPlugin(const CPlugin* plugin, bool eject = false);
|
||||
void unloadAllPlugins();
|
||||
CPlugin* getPluginByPath(const std::string& path);
|
||||
CPlugin* getPluginByHandle(HANDLE handle);
|
||||
std::vector<CPlugin*> getAllPlugins();
|
||||
@@ -41,4 +42,4 @@ class CPluginSystem {
|
||||
jmp_buf m_jbPluginFaultJumpBuf;
|
||||
};
|
||||
|
||||
inline std::unique_ptr<CPluginSystem> g_pPluginSystem;
|
||||
inline std::unique_ptr<CPluginSystem> g_pPluginSystem;
|
||||
|
Reference in New Issue
Block a user