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

Function ProcessCommandLOG

src/cec-client/cec-client.cpp:913–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911}
912
913bool ProcessCommandLOG(ICECAdapter * UNUSED(parser), const std::string &command, std::string &arguments)
914{
915 if (command == "log")
916 {
917 std::string strLevel;
918 if (GetWord(arguments, strLevel))
919 {
920 int iNewLevel = atoi(strLevel.c_str());
921 if (iNewLevel >= CEC_LOG_ERROR && iNewLevel <= CEC_LOG_ALL)
922 {
923 g_cecLogLevel = iNewLevel;
924
925 PrintToStdOut("log level changed to %s", strLevel.c_str());
926 return true;
927 }
928 }
929 }
930
931 return false;
932}
933
934bool ProcessCommandSCAN(ICECAdapter *parser, const std::string &command, std::string & UNUSED(arguments))
935{

Callers 1

ProcessConsoleCommandFunction · 0.85

Calls 2

GetWordFunction · 0.85
PrintToStdOutFunction · 0.85

Tested by

no test coverage detected