satdump/plugins/jason3_support/main.cpp

26 lines
588 B
C++
Raw Normal View History

#include "core/plugin.h"
2022-02-21 23:32:11 +01:00
#include "logger.h"
#include "core/module.h"
2022-02-21 23:32:11 +01:00
2022-03-11 10:38:11 +01:00
#include "jason3/module_jason3_instruments.h"
2022-02-21 23:32:11 +01:00
class Jason3Support : public satdump::Plugin
{
public:
std::string getID()
{
return "jason3_support";
}
void init()
{
satdump::eventBus->register_handler<RegisterModulesEvent>(registerPluginsHandler);
}
static void registerPluginsHandler(const RegisterModulesEvent &evt)
{
2022-03-11 10:38:11 +01:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, jason3::instruments::Jason3InstrumentsDecoderModule);
2022-02-21 23:32:11 +01:00
}
};
PLUGIN_LOADER(Jason3Support)