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

Method HandleGiveMenuLanguage

src/libcec/implementations/CECCommandHandler.cpp:418–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418int CCECCommandHandler::HandleGiveMenuLanguage(const cec_command &command)
419{
420 if (m_processor->CECInitialised() && m_processor->IsHandledByLibCEC(command.destination))
421 {
422 CCECBusDevice *device = GetDevice(command.destination);
423 if (device)
424 {
425 device->TransmitSetMenuLanguage(command.initiator, true);
426 return COMMAND_HANDLED;
427 }
428 return CEC_ABORT_REASON_INVALID_OPERAND;
429 }
430
431 return CEC_ABORT_REASON_NOT_IN_CORRECT_MODE_TO_RESPOND;
432}
433
434int CCECCommandHandler::HandleGiveSystemAudioModeStatus(const cec_command &command)
435{

Callers

nothing calls this directly

Calls 3

CECInitialisedMethod · 0.80
IsHandledByLibCECMethod · 0.45

Tested by

no test coverage detected