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

Function ProcessCommandPOW

src/cec-client/cec-client.cpp:790–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788}
789
790bool ProcessCommandPOW(ICECAdapter *parser, const std::string &command, std::string &arguments)
791{
792 if (command == "pow")
793 {
794 cec_logical_address addr = GetAddressFromInput(arguments);
795 if ((addr != CECDEVICE_UNKNOWN) && (addr != CECDEVICE_BROADCAST))
796 {
797 cec_power_status iPower = parser->GetDevicePowerStatus(addr);
798 PrintToStdOut("power status: %s", parser->ToString(iPower));
799 return true;
800 }
801 }
802
803 return false;
804}
805
806bool ProcessCommandNAME(ICECAdapter *parser, const std::string &command, std::string &arguments)
807{

Callers 1

ProcessConsoleCommandFunction · 0.85

Calls 4

GetAddressFromInputFunction · 0.85
PrintToStdOutFunction · 0.85
GetDevicePowerStatusMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected