MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / callInterface

Method callInterface

core/src/module_com.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool 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}

Callers 4

updatePresenceMethod · 0.80
applyBookmarkMethod · 0.80
menuHandlerMethod · 0.80
commandHandlerMethod · 0.80

Calls 3

findMethod · 0.80
errorFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected