mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-14 15:33:34 -04:00
REST API: config: GET (3) added commands and removed usless friend class
This commit is contained in:
@@ -135,6 +135,16 @@ int WebAPIAdapterSrv::instanceConfigGet(
|
||||
WebAPIAdapterBase::webapiFormatPreset(swgPresets->back(), *preset);
|
||||
}
|
||||
|
||||
int nbCommands = m_mainCore.m_settings.getCommandCount();
|
||||
QList<SWGSDRangel::SWGCommand*> *swgCommands = response.getCommands();
|
||||
|
||||
for (int i = 0; i < nbCommands; i++)
|
||||
{
|
||||
const Command *command = m_mainCore.m_settings.getCommand(i);
|
||||
swgCommands->append(new SWGSDRangel::SWGCommand);
|
||||
WebAPIAdapterBase::webapiFormatCommand(swgCommands->back(), *command);
|
||||
}
|
||||
|
||||
return 200;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user