| 607 | } |
| 608 | |
| 609 | bool ProcessCommandOSD(ICECAdapter *parser, const std::string &command, std::string &arguments) |
| 610 | { |
| 611 | if (command == "osd") |
| 612 | { |
| 613 | bool bFirstWord(false); |
| 614 | std::string strAddr, strMessage, strWord; |
| 615 | uint8_t iAddr; |
| 616 | if (GetWord(arguments, strAddr) && HexStrToInt(strAddr, iAddr) && iAddr < 0xF) |
| 617 | { |
| 618 | while (GetWord(arguments, strWord)) |
| 619 | { |
| 620 | if (bFirstWord) |
| 621 | { |
| 622 | bFirstWord = false; |
| 623 | strMessage.append(" "); |
| 624 | } |
| 625 | strMessage.append(strWord); |
| 626 | } |
| 627 | parser->SetOSDString((cec_logical_address) iAddr, CEC_DISPLAY_CONTROL_DISPLAY_FOR_DEFAULT_TIME, strMessage.c_str()); |
| 628 | return true; |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | return false; |
| 633 | } |
| 634 | |
| 635 | bool ProcessCommandAS(ICECAdapter *parser, const std::string &command, std::string & UNUSED(arguments)) |
| 636 | { |
no test coverage detected