| 40 | } |
| 41 | |
| 42 | bool ModuleComManager::callInterface(std::string name, int code, void* in, void* out) { |
| 43 | std::lock_guard<std::mutex> lck(mtx); |
| 44 | if (interfaces.find(name) == interfaces.end()) { |
| 45 | spdlog::error("Tried to call unknown module interface: {0}", name); |
| 46 | return false; |
| 47 | } |
| 48 | ModuleComInterface iface = interfaces[name]; |
| 49 | iface.handler(code, in, out, iface.ctx); |
| 50 | return true; |
| 51 | } |
no test coverage detected