MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / AddBuildInCommands

Method AddBuildInCommands

Src/Core/Profiler.cpp:999–1009  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

997
998////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
999void 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////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1012void FSecure::C3::Core::Profiler::Gateway::RunCommand(ByteView commandWithArguments)

Callers

nothing calls this directly

Calls 2

arrayClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected