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

Method SaveConfiguration

src/libcec/CECProcessor.cpp:684–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682}
683
684bool CCECProcessor::SaveConfiguration(const libcec_configuration &configuration)
685{
686 libcec_configuration save_config = configuration;
687 if (!CLibCEC::IsValidPhysicalAddress(configuration.iPhysicalAddress))
688 {
689 CCECBusDevice *device = GetPrimaryDevice();
690 if (!!device)
691 save_config.iPhysicalAddress = device->GetCurrentPhysicalAddress();
692 }
693
694 return !!m_communication ?
695 m_communication->SaveConfiguration(save_config) :
696 false;
697}
698
699bool CCECProcessor::SetAutoMode(bool automode)
700{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected