satdump/plugins/bluewalker3_support/main.cpp
2022-11-14 15:16:23 +01:00

25 lines
No EOL
566 B
C++

#include "core/plugin.h"
#include "logger.h"
#include "core/module.h"
#include "module_bw3_decoder.h"
class BlueWalker3Support : public satdump::Plugin
{
public:
std::string getID()
{
return "bluewalker3_support";
}
void init()
{
satdump::eventBus->register_handler<RegisterModulesEvent>(registerPluginsHandler);
}
static void registerPluginsHandler(const RegisterModulesEvent &evt)
{
REGISTER_MODULE_EXTERNAL(evt.modules_registry, bluewalker3::BW3DecoderModule);
}
};
PLUGIN_LOADER(BlueWalker3Support)