mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-19 06:42:43 +00:00
Switched to a custom logging lib instead of that spdlog junk
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
bool ModuleComManager::registerInterface(std::string moduleName, std::string name, void (*handler)(int code, void* in, void* out, void* ctx), void* ctx) {
|
||||
std::lock_guard<std::mutex> lck(mtx);
|
||||
if (interfaces.find(name) != interfaces.end()) {
|
||||
spdlog::error("Tried creating module interface with an existing name: {0}", name);
|
||||
flog::error("Tried creating module interface with an existing name: {0}", name);
|
||||
return false;
|
||||
}
|
||||
ModuleComInterface iface;
|
||||
@@ -17,7 +17,7 @@ bool ModuleComManager::registerInterface(std::string moduleName, std::string nam
|
||||
bool ModuleComManager::unregisterInterface(std::string name) {
|
||||
std::lock_guard<std::mutex> lck(mtx);
|
||||
if (interfaces.find(name) == interfaces.end()) {
|
||||
spdlog::error("Tried to erase module interface with unknown name: {0}", name);
|
||||
flog::error("Tried to erase module interface with unknown name: {0}", name);
|
||||
return false;
|
||||
}
|
||||
interfaces.erase(name);
|
||||
@@ -33,7 +33,7 @@ bool ModuleComManager::interfaceExists(std::string name) {
|
||||
std::string ModuleComManager::getModuleName(std::string name) {
|
||||
std::lock_guard<std::mutex> lck(mtx);
|
||||
if (interfaces.find(name) == interfaces.end()) {
|
||||
spdlog::error("Tried to call unknown module interface: {0}", name);
|
||||
flog::error("Tried to call unknown module interface: {0}", name);
|
||||
return "";
|
||||
}
|
||||
return interfaces[name].moduleName;
|
||||
@@ -42,7 +42,7 @@ std::string ModuleComManager::getModuleName(std::string name) {
|
||||
bool ModuleComManager::callInterface(std::string name, int code, void* in, void* out) {
|
||||
std::lock_guard<std::mutex> lck(mtx);
|
||||
if (interfaces.find(name) == interfaces.end()) {
|
||||
spdlog::error("Tried to call unknown module interface: {0}", name);
|
||||
flog::error("Tried to call unknown module interface: {0}", name);
|
||||
return false;
|
||||
}
|
||||
ModuleComInterface iface = interfaces[name];
|
||||
|
||||
Reference in New Issue
Block a user