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

Method TransmitSetMenuLanguage

src/libcec/devices/CECBusDevice.cpp:479–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479bool CCECBusDevice::TransmitSetMenuLanguage(const cec_logical_address destination, bool bIsReply)
480{
481 bool bReturn(false);
482 char lang[4];
483 {
484 CLockObject lock(m_mutex);
485 memcpy(lang, m_menuLanguage.c_str(), 4);
486 }
487
488 MarkBusy();
489 if (lang[0] == '?' && lang[1] == '?' && lang[2] == '?')
490 {
491 LIB_CEC->AddLog(CEC_LOG_DEBUG, "<< %s (%X) -> %s (%X): menu language feature abort", GetLogicalAddressName(), m_iLogicalAddress, ToString(destination), destination);
492 m_processor->TransmitAbort(m_iLogicalAddress, destination, CEC_OPCODE_GIVE_DEVICE_VENDOR_ID);
493 bReturn = true;
494 }
495 else
496 {
497 LIB_CEC->AddLog(CEC_LOG_DEBUG, "<< %s (%X) -> broadcast (F): menu language '%s'", GetLogicalAddressName(), m_iLogicalAddress, lang);
498 bReturn = m_handler->TransmitSetMenuLanguage(m_iLogicalAddress, lang, bIsReply);
499 }
500 MarkReady();
501 return bReturn;
502}
503
504bool CCECBusDevice::TransmitOSDString(const cec_logical_address destination, cec_display_control duration, const char *strMessage, bool bIsReply)
505{

Callers

nothing calls this directly

Calls 3

ToStringFunction · 0.85
TransmitAbortMethod · 0.80
AddLogMethod · 0.45

Tested by

no test coverage detected