| 485 | } |
| 486 | |
| 487 | bool 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 | |
| 509 | bool CCECClient::Transmit(const cec_command &data, bool bIsReply) |
| 510 | { |
nothing calls this directly
no test coverage detected