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

Method HandleSetMenuLanguage

src/libcec/implementations/CECCommandHandler.cpp:596–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596int 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
615int CCECCommandHandler::HandleSetOSDName(const cec_command &command)
616{

Callers

nothing calls this directly

Calls 1

SetMenuLanguageMethod · 0.80

Tested by

no test coverage detected