1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-05 08:21:16 -05:00
sdrangel/sdrbase/plugin/pluginapi.cpp

42 lines
1.0 KiB
C++
Raw Normal View History

#include "plugin/pluginapi.h"
#include "plugin/pluginmanager.h"
2016-10-13 16:23:43 -04:00
void PluginAPI::registerRxChannel(const QString& channelName, PluginInterface* plugin)
{
2016-10-13 16:23:43 -04:00
m_pluginManager->registerRxChannel(channelName, plugin);
}
void PluginAPI::registerSampleSource(const QString& sourceName, PluginInterface* plugin)
{
m_pluginManager->registerSampleSource(sourceName, plugin);
}
2016-10-13 16:23:43 -04:00
PluginAPI::ChannelRegistrations *PluginAPI::getRxChannelRegistrations()
{
2016-10-13 16:23:43 -04:00
return m_pluginManager->getRxChannelRegistrations();
}
void PluginAPI::registerTxChannel(const QString& channelName, PluginInterface* plugin)
{
m_pluginManager->registerTxChannel(channelName, plugin);
}
void PluginAPI::registerSampleSink(const QString& sinkName, PluginInterface* plugin)
{
m_pluginManager->registerSampleSink(sinkName, plugin);
}
PluginAPI::ChannelRegistrations *PluginAPI::getTxChannelRegistrations()
{
return m_pluginManager->getTxChannelRegistrations();
}
PluginAPI::PluginAPI(PluginManager* pluginManager) :
m_pluginManager(pluginManager)
{
}
PluginAPI::~PluginAPI()
{
}