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