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

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

This commit is contained in:
f4exb
2019-08-07 00:27:34 +02:00
parent 4157f64297
commit d4dacaf84d
9 changed files with 440 additions and 758 deletions
+17
View File
@@ -150,6 +150,23 @@ int WebAPIAdapterSrv::instanceConfigGet(
return 200;
}
int WebAPIAdapterSrv::instanceConfigPutPatch(
bool force, // PUT else PATCH
SWGSDRangel::SWGInstanceConfigResponse& query,
const ConfigKeys& configKeys,
SWGSDRangel::SWGSuccessResponse& response,
SWGSDRangel::SWGErrorResponse& error)
{
WebAPIAdapterBase webAPIAdapterBase;
webAPIAdapterBase.setPluginManager(m_mainCore.getPluginManager());
if (force) {
webAPIAdapterBase.webapiInitConfig(m_mainCore.m_settings);
}
// TODO
}
int WebAPIAdapterSrv::instanceDevices(
int direction,
SWGSDRangel::SWGInstanceDevicesResponse& response,