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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user