mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
34 lines
No EOL
953 B
C++
34 lines
No EOL
953 B
C++
#include "core/plugin.h"
|
|
#include "logger.h"
|
|
#include "core/module.h"
|
|
|
|
#include "stdc/module_stdc_decoder.h"
|
|
#include "stdc/module_stdc_parser.h"
|
|
|
|
#include "aero/module_aero_decoder.h"
|
|
#include "aero/module_aero_parser.h"
|
|
|
|
class InmarsatSupport : public satdump::Plugin
|
|
{
|
|
public:
|
|
std::string getID()
|
|
{
|
|
return "inmarsat_support";
|
|
}
|
|
|
|
void init()
|
|
{
|
|
satdump::eventBus->register_handler<RegisterModulesEvent>(registerPluginsHandler);
|
|
}
|
|
|
|
static void registerPluginsHandler(const RegisterModulesEvent &evt)
|
|
{
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, inmarsat::stdc::STDCDecoderModule);
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, inmarsat::stdc::STDCParserModule);
|
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, inmarsat::aero::AeroDecoderModule);
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, inmarsat::aero::AeroParserModule);
|
|
}
|
|
};
|
|
|
|
PLUGIN_LOADER(InmarsatSupport) |