MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / RegisterPluginEventsCallback

Method RegisterPluginEventsCallback

src/render/plugins/plugin_manager.cpp:172–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 }
171
172 void PluginManager::RegisterPluginEventsCallback() {
173 this->evt_router_ = std::make_shared<PluginEventRouter>(app_);
174 VisitAllPlugins([&](GrPluginInterface* plugin) {
175 plugin->RegisterEventCallback([=, this](const std::shared_ptr<GrPluginBaseEvent>& event) {
176 evt_router_->ProcessPluginEvent(event);
177 });
178 });
179 }
180
181 void PluginManager::ReleaseAllPlugins() {
182 for (const auto& [k, plugin] : plugins_) {

Callers 1

RunMethod · 0.45

Calls 2

RegisterEventCallbackMethod · 0.45
ProcessPluginEventMethod · 0.45

Tested by

no test coverage detected