satdump/plugins/earthcare_support/main.cpp

19 lines
590 B
C++
Raw Permalink Normal View History

2024-12-22 15:38:56 +01:00
#include "core/plugin.h"
#include "logger.h"
#include "earthcare/module_earthcare_instruments.h"
class EarthCARESupport : public satdump::Plugin
{
public:
std::string getID() { return "earthcare_support"; }
2024-12-22 15:38:56 +01:00
void init() { satdump::eventBus->register_handler<satdump::pipeline::RegisterModulesEvent>(registerPluginsHandler); }
2024-12-22 15:38:56 +01:00
static void registerPluginsHandler(const satdump::pipeline::RegisterModulesEvent &evt)
2024-12-22 15:38:56 +01:00
{
REGISTER_MODULE_EXTERNAL(evt.modules_registry, earthcare::instruments::EarthCAREInstrumentsDecoderModule);
}
};
PLUGIN_LOADER(EarthCARESupport)