| 1408 | } |
| 1409 | |
| 1410 | bool CCECClient::SetDeviceTypes(const cec_device_type_list &deviceTypes) |
| 1411 | { |
| 1412 | bool bNeedReinit(false); |
| 1413 | |
| 1414 | { |
| 1415 | CLockObject lock(m_mutex); |
| 1416 | bNeedReinit = m_processor && m_processor->CECInitialised() && |
| 1417 | (m_configuration.deviceTypes != deviceTypes); |
| 1418 | m_configuration.deviceTypes = deviceTypes; |
| 1419 | } |
| 1420 | |
| 1421 | |
| 1422 | if (bNeedReinit) |
| 1423 | { |
| 1424 | LIB_CEC->AddLog(CEC_LOG_DEBUG, "%s - using primary device type '%s'", __FUNCTION__, ToString(deviceTypes[0])); |
| 1425 | SaveConfiguration(m_configuration); |
| 1426 | } |
| 1427 | |
| 1428 | return bNeedReinit; |
| 1429 | } |
| 1430 | |
| 1431 | cec_device_type_list CCECClient::GetDeviceTypes(void) |
| 1432 | { |
nothing calls this directly
no test coverage detected