MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / deinit_plugins

Method deinit_plugins

src/core/plugin-loader.cpp:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void wf::plugin_manager_t::deinit_plugins(bool unloadable)
29{
30 for (auto& [name, plugin] : loaded_plugins)
31 {
32 if (!plugin.instance)
33 {
34 continue;
35 }
36
37 if (plugin.instance->is_unloadable() == unloadable)
38 {
39 destroy_plugin(plugin);
40 }
41 }
42}
43
44wf::plugin_manager_t::~plugin_manager_t()
45{

Callers

nothing calls this directly

Calls 1

is_unloadableMethod · 0.45

Tested by

no test coverage detected