1
0
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:
f4exb
2019-05-02 04:02:40 +02:00
parent 84dc7e0bb0
commit 9e5003eab9
333 changed files with 5869 additions and 267 deletions
+29
View File
@@ -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)