satdump/plugins/bluewalker3_support/main.cpp

16 lines
532 B
C++
Raw Permalink Normal View History

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