1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-15 12:18:48 -04:00

REST API: config: PUT (3): mapper work and rework

This commit is contained in:
f4exb
2019-08-06 19:06:49 +02:00
parent 659f94b4c6
commit 4157f64297
5 changed files with 382 additions and 16 deletions
+12 -4
View File
@@ -117,8 +117,8 @@ int WebAPIAdapterGUI::instanceDelete(
}
int WebAPIAdapterGUI::instanceConfigGet(
SWGSDRangel::SWGInstanceConfigResponse& response,
SWGSDRangel::SWGErrorResponse& error)
SWGSDRangel::SWGInstanceConfigResponse& response,
SWGSDRangel::SWGErrorResponse& error)
{
response.init();
WebAPIAdapterBase webAPIAdapterBase;
@@ -151,11 +151,19 @@ int WebAPIAdapterGUI::instanceConfigGet(
return 200;
}
void WebAPIAdapterGUI::instanceConfigInit()
int WebAPIAdapterGUI::instanceConfigPutPatch(
bool force, // PUT else PATCH
SWGSDRangel::SWGInstanceConfigResponse& query,
const ConfigKeys& configKeys,
SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error)
{
WebAPIAdapterBase webAPIAdapterBase;
webAPIAdapterBase.setPluginManager(m_mainWindow.getPluginManager());
webAPIAdapterBase.webapiInitConfig(m_mainWindow.m_settings);
if (force) {
webAPIAdapterBase.webapiInitConfig(m_mainWindow.m_settings);
}
}
int WebAPIAdapterGUI::instanceDevices(