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

Function _INIT_

source_modules/sdrplay_source/src/main.cpp:1063–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061};
1062
1063MOD_EXPORT void _INIT_() {
1064 json def = json({});
1065 def["devices"] = json({});
1066 def["device"] = "";
1067 config.setPath(options::opts.root + "/sdrplay_config.json");
1068 config.load(def);
1069 config.enableAutoSave();
1070}
1071
1072MOD_EXPORT ModuleManager::Instance* _CREATE_INSTANCE_(std::string name) {
1073 return new SDRPlaySourceModule(name);

Callers

nothing calls this directly

Calls 3

enableAutoSaveMethod · 0.80
setPathMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected