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

Method IsActiveType

src/libcec/devices/CECDeviceMap.cpp:187–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187bool CCECDeviceMap::IsActiveType(const cec_device_type type, bool suppressPoll /* = true */) const
188{
189 for (auto it = m_busDevices.begin(); it != m_busDevices.end(); ++it)
190 {
191 auto dev = it->second;
192 if (!!dev &&
193 (dev->GetType() == type) &&
194 (dev->IsActive(suppressPoll))) {
195 return true;
196 }
197 }
198 return false;
199}
200
201void CCECDeviceMap::GetPowerOffDevices(const libcec_configuration &configuration, CECDEVICEVEC &devices) const
202{

Callers 1

IsActiveDeviceTypeMethod · 0.80

Calls 2

IsActiveMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected