| 594 | } |
| 595 | |
| 596 | int CCECCommandHandler::HandleSetMenuLanguage(const cec_command &command) |
| 597 | { |
| 598 | if (command.parameters.size == 3) |
| 599 | { |
| 600 | CCECBusDevice *device = GetDevice(command.initiator); |
| 601 | if (device) |
| 602 | { |
| 603 | cec_menu_language language; |
| 604 | for (uint8_t iPtr = 0; iPtr < 3; iPtr++) |
| 605 | language[iPtr] = command.parameters[iPtr]; |
| 606 | language[3] = (char)0; |
| 607 | device->SetMenuLanguage(language); |
| 608 | return COMMAND_HANDLED; |
| 609 | } |
| 610 | } |
| 611 | |
| 612 | return CEC_ABORT_REASON_INVALID_OPERAND; |
| 613 | } |
| 614 | |
| 615 | int CCECCommandHandler::HandleSetOSDName(const cec_command &command) |
| 616 | { |
nothing calls this directly
no test coverage detected