mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
New plugin pair LocalSink and LocalInput to pipe streams internally
This commit is contained in:
@@ -2121,6 +2121,21 @@ bool WebAPIRequestMapper::validateDeviceSettings(
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if ((*deviceHwType == "LocalInput") && (deviceSettings.getTx() == 0))
|
||||
{
|
||||
if (jsonObject.contains("localInputSettings") && jsonObject["localInputSettings"].isObject())
|
||||
{
|
||||
QJsonObject localInputSettingsJsonObject = jsonObject["localInputSettings"].toObject();
|
||||
deviceSettingsKeys = localInputSettingsJsonObject.keys();
|
||||
deviceSettings.setLocalInputSettings(new SWGSDRangel::SWGLocalInputSettings());
|
||||
deviceSettings.getLocalInputSettings()->fromJsonObject(localInputSettingsJsonObject);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if ((*deviceHwType == "RemoteOutput") && (deviceSettings.getTx() != 0))
|
||||
{
|
||||
if (jsonObject.contains("remoteOutputSettings") && jsonObject["remoteOutputSettings"].isObject())
|
||||
@@ -2301,6 +2316,20 @@ bool WebAPIRequestMapper::validateChannelSettings(
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (*channelType == "LocalSink")
|
||||
{
|
||||
if (channelSettings.getTx() == 0)
|
||||
{
|
||||
QJsonObject localChannelSinkSettingsJsonObject = jsonObject["LocalSinkSettings"].toObject();
|
||||
channelSettingsKeys = localChannelSinkSettingsJsonObject.keys();
|
||||
channelSettings.setLocalSinkSettings(new SWGSDRangel::SWGLocalSinkSettings());
|
||||
channelSettings.getLocalSinkSettings()->fromJsonObject(localChannelSinkSettingsJsonObject);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (*channelType == "RemoteSink")
|
||||
{
|
||||
if (channelSettings.getTx() == 0)
|
||||
|
||||
Reference in New Issue
Block a user