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

Function _INIT_

source_modules/hackrf_source/src/main.cpp:390–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388};
389
390MOD_EXPORT void _INIT_() {
391 json def = json({});
392 def["devices"] = json({});
393 def["device"] = "";
394 config.setPath(options::opts.root + "/hackrf_config.json");
395 config.load(def);
396 config.enableAutoSave();
397}
398
399MOD_EXPORT ModuleManager::Instance* _CREATE_INSTANCE_(std::string name) {
400 return new HackRFSourceModule(name);

Callers

nothing calls this directly

Calls 3

enableAutoSaveMethod · 0.80
setPathMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected