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

Function ProcessCommandNAME

src/cec-client/cec-client.cpp:806–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806bool ProcessCommandNAME(ICECAdapter *parser, const std::string &command, std::string &arguments)
807{
808 if (command == "name")
809 {
810 cec_logical_address addr = GetAddressFromInput(arguments);
811 if ((addr != CECDEVICE_UNKNOWN) && (addr != CECDEVICE_BROADCAST))
812 {
813 std::string name = parser->GetDeviceOSDName(addr);
814 PrintToStdOut("OSD name of device %d is '%s'", addr, name.c_str());
815 return true;
816 }
817 }
818
819 return false;
820}
821
822bool ProcessCommandLAD(ICECAdapter *parser, const std::string &command, std::string & UNUSED(arguments))
823{

Callers 1

ProcessConsoleCommandFunction · 0.85

Calls 3

GetAddressFromInputFunction · 0.85
PrintToStdOutFunction · 0.85
GetDeviceOSDNameMethod · 0.45

Tested by

no test coverage detected