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

Function ProcessCommandSP

src/cec-client/cec-client.cpp:397–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397bool ProcessCommandSP(ICECAdapter *parser, const std::string &command, std::string &arguments)
398{
399 if (command == "sp")
400 {
401 std::string strAddress;
402 int iAddress;
403 if (GetWord(arguments, strAddress))
404 {
405 sscanf(strAddress.c_str(), "%x", &iAddress);
406 if (iAddress >= 0 && iAddress <= CEC_INVALID_PHYSICAL_ADDRESS)
407 parser->SetStreamPath((uint16_t)iAddress);
408 return true;
409 }
410 }
411
412 return false;
413}
414
415bool ProcessCommandSPL(ICECAdapter *parser, const std::string &command, std::string &arguments)
416{

Callers 1

ProcessConsoleCommandFunction · 0.85

Calls 2

GetWordFunction · 0.85
SetStreamPathMethod · 0.45

Tested by

no test coverage detected