satdump/plugins/jpss_support/main.cpp

26 lines
574 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-15 01:01:03 +01:00
#include "jpss/module_jpss_instruments.h"
2022-02-21 23:32:11 +01:00
class JPSSSupport : public satdump::Plugin
{
public:
std::string getID()
{
2022-05-13 21:35:51 +02:00
return "jpss_support";
2022-02-21 23:32:11 +01:00
}
void init()
{
satdump::eventBus->register_handler<RegisterModulesEvent>(registerPluginsHandler);
}
static void registerPluginsHandler(const RegisterModulesEvent &evt)
{
2022-03-15 01:01:03 +01:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, jpss::instruments::JPSSInstrumentsDecoderModule);
2022-02-21 23:32:11 +01:00
}
};
PLUGIN_LOADER(JPSSSupport)