| 427 | } |
| 428 | |
| 429 | CCECBusDevice *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 | |
| 443 | bool CCECClient::ChangeDeviceType(const cec_device_type from, const cec_device_type to) |
| 444 | { |
nothing calls this directly
no test coverage detected