diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2023-03-01 00:11:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-28 23:11:49 +0000 |
| commit | 5c93f6947a04163c6ea8299e8721b923bea2fb9f (patch) | |
| tree | 487bd6701c7539d0170b12217b7842c69c700af8 /src/plugins/PluginSystem.hpp | |
| parent | 07b98952bc09f61d85895c49504b681de8687975 (diff) | |
Unload plugins on compositor cleanup (#1662)
Diffstat (limited to 'src/plugins/PluginSystem.hpp')
| -rw-r--r-- | src/plugins/PluginSystem.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/PluginSystem.hpp b/src/plugins/PluginSystem.hpp index 041ee47e..5d1a1532 100644 --- a/src/plugins/PluginSystem.hpp +++ b/src/plugins/PluginSystem.hpp @@ -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;
\ No newline at end of file +inline std::unique_ptr<CPluginSystem> g_pPluginSystem; |
