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

Function create_plugin

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

Source from the content-addressed store, hash-verified

279
280template<class T>
281static wf::loaded_plugin_t create_plugin(std::string name)
282{
283 wf::loaded_plugin_t lp;
284 lp.instance = std::make_unique<T>();
285 lp.so_handle = nullptr;
286 lp.so_path = name;
287 lp.instance->init();
288 return lp;
289}
290
291void wf::plugin_manager_t::load_static_plugins()
292{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected