mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-17 05:08:54 -04:00
Server: Web API: /sdrangel/deviceset/{deviceSetIndex}/channel POST implementation and rework in the PluginInterface
This commit is contained in:
@@ -72,12 +72,8 @@ BasebandSampleSource* AMModPlugin::createTxChannel(const QString& channelName, D
|
||||
}
|
||||
}
|
||||
|
||||
void AMModPlugin::createTxChannel(ChannelSourceAPI **channelSourceAPI, const QString& channelName, DeviceSinkAPI *deviceAPI)
|
||||
ChannelSourceAPI* AMModPlugin::createTxChannel(DeviceSinkAPI *deviceAPI)
|
||||
{
|
||||
if(channelName == AMMod::m_channelIdURI) {
|
||||
*channelSourceAPI = new AMMod(deviceAPI);
|
||||
} else {
|
||||
*channelSourceAPI = 0;
|
||||
}
|
||||
return new AMMod(deviceAPI);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user