///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 997 | |
| 998 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 999 | void FSecure::C3::Core::Profiler::Gateway::AddBuildInCommands(json& interface, bool isDevice) |
| 1000 | { |
| 1001 | interface["commands"].push_back(json{ {"name", isDevice ? "Close" : "TurnOff"}, {"id", static_cast<std::underlying_type_t<Command>>(Command::Close) }, {"arguments", json::array()} }); |
| 1002 | |
| 1003 | if (isDevice) |
| 1004 | interface["commands"].push_back(json{ {"name", "Set UpdateDelayJitter"}, {"description", "Set delay between receiving function calls."}, {"id", static_cast<std::underlying_type_t<Command>>(Command::UpdateJitter) }, |
| 1005 | {"arguments", { |
| 1006 | {{"type", "float"}, {"name", "Min"}, {"description", "Minimal delay in seconds"}, {"min", 0.03}}, |
| 1007 | {{"type", "float"}, {"name", "Max"}, {"description", "Maximal delay in seconds. "}, {"min", 0.03}} |
| 1008 | }} }); |
| 1009 | } |
| 1010 | |
| 1011 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 1012 | void FSecure::C3::Core::Profiler::Gateway::RunCommand(ByteView commandWithArguments) |