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

Method SetLogicalAddress

src/libcec/CECClient.cpp:487–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487bool CCECClient::SetLogicalAddress(const cec_logical_address iLogicalAddress)
488{
489 bool bReturn(true);
490
491 if (GetPrimaryLogicalAddress() != iLogicalAddress)
492 {
493 LIB_CEC->AddLog(CEC_LOG_NOTICE, "setting primary logical address to %1x", iLogicalAddress);
494 {
495 CLockObject lock(m_mutex);
496 m_configuration.logicalAddresses.primary = iLogicalAddress;
497 m_configuration.logicalAddresses.Set(iLogicalAddress);
498 }
499
500 bReturn = m_processor->RegisterClient(this);
501
502 if (bReturn)
503 SaveConfiguration(m_configuration);
504 }
505
506 return bReturn;
507}
508
509bool CCECClient::Transmit(const cec_command &data, bool bIsReply)
510{

Callers

nothing calls this directly

Calls 3

SetMethod · 0.80
AddLogMethod · 0.45
RegisterClientMethod · 0.45

Tested by

no test coverage detected