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

Method unregisterSource

core/src/signal_path/source.cpp:18–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void SourceManager::unregisterSource(std::string name) {
19 if (sources.find(name) == sources.end()) {
20 spdlog::error("Tried to unregister non existent source: {0}", name);
21 return;
22 }
23 onSourceUnregister.emit(name);
24 if (name == selectedName) {
25 if (selectedHandler != NULL) {
26 sources[selectedName]->deselectHandler(sources[selectedName]->ctx);
27 }
28 sigpath::signalPath.setInput(&nullSource);
29 selectedHandler = NULL;
30 }
31 sources.erase(name);
32 onSourceUnregistered.emit(name);
33}
34
35std::vector<std::string> SourceManager::getSourceNames() {
36 std::vector<std::string> names;

Callers 13

~HackRFSourceModuleMethod · 0.80
~RTLTCPSourceModuleMethod · 0.80
~FileSourceModuleMethod · 0.80
~RTLSDRSourceModuleMethod · 0.80
~AirspyHFSourceModuleMethod · 0.80
~AirspyHFSourceModuleMethod · 0.80
~LimeSDRSourceModuleMethod · 0.80
~BladeRFSourceModuleMethod · 0.80
~SDRPlaySourceModuleMethod · 0.80
~PlutoSDRSourceModuleMethod · 0.80
~SoapyModuleMethod · 0.80

Calls 6

findMethod · 0.80
emitMethod · 0.80
eraseMethod · 0.80
errorFunction · 0.50
endMethod · 0.45
setInputMethod · 0.45

Tested by

no test coverage detected