1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 06:54:39 -04:00

REST API: config: GET (4): optimize channel settings API management and generally improve constedness

This commit is contained in:
f4exb
2019-08-01 21:27:31 +02:00
parent 810bbe2979
commit ef82b89182
53 changed files with 220 additions and 185 deletions
+4 -4
View File
@@ -55,23 +55,23 @@ void AMModPlugin::initPlugin(PluginAPI* pluginAPI)
#ifdef SERVER_MODE
PluginInstanceGUI* AMModPlugin::createTxChannelGUI(
DeviceUISet *deviceUISet,
BasebandSampleSource *txChannel)
BasebandSampleSource *txChannel) const
{
return 0;
}
#else
PluginInstanceGUI* AMModPlugin::createTxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
PluginInstanceGUI* AMModPlugin::createTxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSource *txChannel) const
{
return AMModGUI::create(m_pluginAPI, deviceUISet, txChannel);
}
#endif
BasebandSampleSource* AMModPlugin::createTxChannelBS(DeviceAPI *deviceAPI)
BasebandSampleSource* AMModPlugin::createTxChannelBS(DeviceAPI *deviceAPI) const
{
return new AMMod(deviceAPI);
}
ChannelAPI* AMModPlugin::createTxChannelCS(DeviceAPI *deviceAPI)
ChannelAPI* AMModPlugin::createTxChannelCS(DeviceAPI *deviceAPI) const
{
return new AMMod(deviceAPI);
}