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

Function ProcessCommandLANG

src/cec-client/cec-client.cpp:741–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741bool ProcessCommandLANG(ICECAdapter *parser, const std::string &command, std::string &arguments)
742{
743 if (command == "lang")
744 {
745 cec_logical_address addr = GetAddressFromInput(arguments);
746 if ((addr != CECDEVICE_UNKNOWN) && (addr != CECDEVICE_BROADCAST))
747 {
748 std::string strLog;
749 strLog = StringUtils::Format("menu language '%s'", parser->GetDeviceMenuLanguage(addr).c_str());
750 PrintToStdOut(strLog.c_str());
751 return true;
752 }
753 }
754
755 return false;
756}
757
758bool ProcessCommandVEN(ICECAdapter *parser, const std::string &command, std::string &arguments)
759{

Callers 1

ProcessConsoleCommandFunction · 0.85

Calls 3

GetAddressFromInputFunction · 0.85
PrintToStdOutFunction · 0.85
GetDeviceMenuLanguageMethod · 0.45

Tested by

no test coverage detected