satdump/plugins/dvb_support/main.cpp
2023-02-12 23:29:51 +01:00

28 lines
No EOL
655 B
C++

#include "core/plugin.h"
#include "logger.h"
#include "core/module.h"
#include "dvbs/module_dvbs_demod.h"
#include "dvbs2/module_dvbs2_demod.h"
class DVBSupport : public satdump::Plugin
{
public:
std::string getID()
{
return "dvb_support";
}
void init()
{
satdump::eventBus->register_handler<RegisterModulesEvent>(registerPluginsHandler);
}
static void registerPluginsHandler(const RegisterModulesEvent &evt)
{
REGISTER_MODULE_EXTERNAL(evt.modules_registry, dvb::DVBSDemodModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, dvb::DVBS2DemodModule);
}
};
PLUGIN_LOADER(DVBSupport)