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

Method GetDeviceByType

src/libcec/CECClient.cpp:429–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429CCECBusDevice *CCECClient::GetDeviceByType(const cec_device_type type) const
430{
431 // get all devices that match our logical addresses
432 CECDEVICEVEC devices;
433 m_processor->GetDevices()->GetByLogicalAddresses(devices, m_configuration.logicalAddresses);
434
435 // filter the type we need
436 CCECDeviceMap::FilterType(type, devices);
437
438 return devices.empty() ?
439 NULL :
440 *devices.begin();
441}
442
443bool CCECClient::ChangeDeviceType(const cec_device_type from, const cec_device_type to)
444{

Callers

nothing calls this directly

Calls 2

GetByLogicalAddressesMethod · 0.80
GetDevicesMethod · 0.80

Tested by

no test coverage detected