| 613 | } |
| 614 | |
| 615 | int CCECCommandHandler::HandleSetOSDName(const cec_command &command) |
| 616 | { |
| 617 | if (command.parameters.size > 0) |
| 618 | { |
| 619 | CCECBusDevice *device = GetDevice(command.initiator); |
| 620 | if (device) |
| 621 | { |
| 622 | char buf[17]; |
| 623 | for (uint8_t iPtr = 0; iPtr < command.parameters.size; iPtr++) |
| 624 | buf[iPtr] = (char)command.parameters[iPtr]; |
| 625 | buf[command.parameters.size] = 0; |
| 626 | |
| 627 | std::string strName(buf); |
| 628 | device->SetOSDName(strName); |
| 629 | |
| 630 | return COMMAND_HANDLED; |
| 631 | } |
| 632 | } |
| 633 | |
| 634 | return CEC_ABORT_REASON_INVALID_OPERAND; |
| 635 | } |
| 636 | |
| 637 | int CCECCommandHandler::HandleSetStreamPath(const cec_command &command) |
| 638 | { |
nothing calls this directly
no test coverage detected