2023-01-18 23:17:24 +01:00
|
|
|
#include "core/plugin.h"
|
|
|
|
|
#include "logger.h"
|
|
|
|
|
#include "core/module.h"
|
|
|
|
|
|
|
|
|
|
#include "stdc/module_stdc_decoder.h"
|
|
|
|
|
#include "stdc/module_stdc_parser.h"
|
|
|
|
|
|
2023-02-02 23:20:54 +01:00
|
|
|
#include "aero/module_aero_decoder.h"
|
2023-02-08 14:06:40 +01:00
|
|
|
#include "aero/module_aero_parser.h"
|
2023-02-02 23:20:54 +01:00
|
|
|
|
2023-01-18 23:17:24 +01:00
|
|
|
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);
|
2023-02-02 23:20:54 +01:00
|
|
|
|
|
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, inmarsat::aero::AeroDecoderModule);
|
2023-02-08 14:06:40 +01:00
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, inmarsat::aero::AeroParserModule);
|
2023-01-18 23:17:24 +01:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PLUGIN_LOADER(InmarsatSupport)
|