mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 09:18:54 -05:00
Fixed wrong structure being used in some sample source and sink plugins web API adapters. Fixes #842
This commit is contained in:
parent
38883de29e
commit
76f09a17a7
@ -30,8 +30,8 @@ int AudioOutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setAudioOutputSettings(new SWGSDRangel::SWGAudioOutputSettings());
|
||||
response.getAudioOutputSettings()->init();
|
||||
AudioOutput::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ int BladeRF1OutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setBladeRf1OutputSettings(new SWGSDRangel::SWGBladeRF1OutputSettings());
|
||||
response.getBladeRf1OutputSettings()->init();
|
||||
Bladerf1Output::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ int BladeRF2OutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setBladeRf2OutputSettings(new SWGSDRangel::SWGBladeRF2OutputSettings());
|
||||
response.getBladeRf2OutputSettings()->init();
|
||||
BladeRF2Output::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ int HackRFOutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setHackRfOutputSettings(new SWGSDRangel::SWGHackRFOutputSettings());
|
||||
response.getHackRfOutputSettings()->init();
|
||||
HackRFOutput::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ int LimeSDROutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setLimeSdrOutputSettings(new SWGSDRangel::SWGLimeSdrOutputSettings());
|
||||
response.getLimeSdrOutputSettings()->init();
|
||||
LimeSDROutput::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ int LocalOutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setLocalOutputSettings(new SWGSDRangel::SWGLocalOutputSettings());
|
||||
response.getLocalOutputSettings()->init();
|
||||
LocalOutput::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ int PlutoSDROutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setPlutoSdrOutputSettings(new SWGSDRangel::SWGPlutoSdrOutputSettings());
|
||||
response.getPlutoSdrOutputSettings()->init();
|
||||
PlutoSDROutput::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ int RemoteOutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setRemoteOutputSettings(new SWGSDRangel::SWGRemoteOutputSettings());
|
||||
response.getRemoteOutputSettings()->init();
|
||||
RemoteOutput::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ int SoapySDROutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setSoapySdrOutputSettings(new SWGSDRangel::SWGSoapySDROutputSettings());
|
||||
response.getSoapySdrOutputSettings()->init();
|
||||
SoapySDROutput::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -34,8 +34,8 @@ int USRPOutputWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
response.setAirspyHfSettings(new SWGSDRangel::SWGAirspyHFSettings());
|
||||
response.getAirspyHfSettings()->init();
|
||||
response.setUsrpOutputSettings(new SWGSDRangel::SWGUSRPOutputSettings());
|
||||
response.getUsrpOutputSettings()->init();
|
||||
USRPOutput::webapiFormatDeviceSettings(response, m_settings);
|
||||
return 200;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user