| 31 | } |
| 32 | |
| 33 | std::string ModuleComManager::getModuleName(std::string name) { |
| 34 | std::lock_guard<std::mutex> lck(mtx); |
| 35 | if (interfaces.find(name) == interfaces.end()) { |
| 36 | spdlog::error("Tried to call unknown module interface: {0}", name); |
| 37 | return ""; |
| 38 | } |
| 39 | return interfaces[name].moduleName; |
| 40 | } |
| 41 | |
| 42 | bool ModuleComManager::callInterface(std::string name, int code, void* in, void* out) { |
| 43 | std::lock_guard<std::mutex> lck(mtx); |
no test coverage detected