1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 22:45:05 -04:00

Fixed wrong structure being used in some sample source and sink plugins web API adapters. Fixes #842

This commit is contained in:
f4exb
2021-04-15 15:27:03 +02:00
parent 38883de29e
commit 76f09a17a7
28 changed files with 56 additions and 56 deletions
@@ -31,8 +31,8 @@ int AudioInputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setAudioInputSettings(new SWGSDRangel::SWGAudioInputSettings());
response.getAudioInputSettings()->init();
AudioInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int BladeRF1InputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setBladeRf1InputSettings(new SWGSDRangel::SWGBladeRF1InputSettings());
response.getBladeRf1InputSettings()->init();
Bladerf1Input::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int BladeRF2InputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setBladeRf2InputSettings(new SWGSDRangel::SWGBladeRF2InputSettings());
response.getBladeRf2InputSettings()->init();
BladeRF2Input::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int FCDProWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setFcdProSettings(new SWGSDRangel::SWGFCDProSettings());
response.getFcdProSettings()->init();
FCDProInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int FCDProPlusWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setFcdProPlusSettings(new SWGSDRangel::SWGFCDProPlusSettings());
response.getFcdProPlusSettings()->init();
FCDProPlusInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int FileInputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setFileInputSettings(new SWGSDRangel::SWGFileInputSettings());
response.getFileInputSettings()->init();
FileInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int KiwiSDRWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setKiwiSdrSettings(new SWGSDRangel::SWGKiwiSDRSettings());
response.getKiwiSdrSettings()->init();
KiwiSDRInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int LimeSDRInputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setLimeSdrInputSettings(new SWGSDRangel::SWGLimeSdrInputSettings());
response.getLimeSdrInputSettings()->init();
LimeSDRInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int LocalInputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setLocalInputSettings(new SWGSDRangel::SWGLocalInputSettings());
response.getLocalInputSettings()->init();
LocalInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int PerseusWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setPerseusSettings(new SWGSDRangel::SWGPerseusSettings());
response.getPerseusSettings()->init();
PerseusInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int PlutoSDRInputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setPlutoSdrInputSettings(new SWGSDRangel::SWGPlutoSdrInputSettings());
response.getPlutoSdrInputSettings()->init();
PlutoSDRInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int RemoteInputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setRemoteInputSettings(new SWGSDRangel::SWGRemoteInputSettings());
response.getRemoteInputSettings()->init();
RemoteInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int RTLSDRWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setRtlSdrSettings(new SWGSDRangel::SWGRtlSdrSettings());
response.getRtlSdrSettings()->init();
RTLSDRInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int SDRPlayWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setSdrPlaySettings(new SWGSDRangel::SWGSDRPlaySettings());
response.getSdrPlaySettings()->init();
SDRPlayInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int SigMFFileInputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setSigMfFileInputSettings(new SWGSDRangel::SWGSigMFFileInputSettings());
response.getSigMfFileInputSettings()->init();
SigMFFileInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int SoapySDRInputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setSoapySdrInputSettings(new SWGSDRangel::SWGSoapySDRInputSettings());
response.getSoapySdrInputSettings()->init();
SoapySDRInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -33,8 +33,8 @@ int TestSourceWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setTestSourceSettings(new SWGSDRangel::SWGTestSourceSettings());
response.getTestSourceSettings()->init();
TestSourceInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}
@@ -34,8 +34,8 @@ int USRPInputWebAPIAdapter::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
response.getAirspyHfSettings()->init();
response.setUsrpInputSettings(new SWGSDRangel::SWGUSRPInputSettings());
response.getUsrpInputSettings()->init();
USRPInput::webapiFormatDeviceSettings(response, m_settings);
return 200;
}