MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / ProcessCommandMON

Function ProcessCommandMON

src/cec-client/cec-client.cpp:710–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710bool ProcessCommandMON(ICECAdapter *parser, const std::string &command, std::string &arguments)
711{
712 if (command == "mon")
713 {
714 std::string strEnable;
715 if (GetWord(arguments, strEnable) && (strEnable == "0" || strEnable == "1"))
716 {
717 parser->SwitchMonitoring(strEnable == "1");
718 return true;
719 }
720 }
721
722 return false;
723}
724
725bool ProcessCommandBL(ICECAdapter *parser, const std::string &command, std::string & UNUSED(arguments))
726{

Callers 1

ProcessConsoleCommandFunction · 0.85

Calls 2

GetWordFunction · 0.85
SwitchMonitoringMethod · 0.45

Tested by

no test coverage detected