<ClInclude Include="..\src\lib\adapter\USBCECAdapterDetection.h" />
<ClInclude Include="..\src\lib\adapter\USBCECAdapterMessage.h" />
<ClInclude Include="..\src\lib\adapter\USBCECAdapterMessageQueue.h" />
+ <ClInclude Include="..\src\lib\CECClient.h" />
+ <ClInclude Include="..\src\lib\CECInputBuffer.h" />
<ClInclude Include="..\src\lib\CECProcessor.h" />
<ClInclude Include="..\src\lib\devices\CECAudioSystem.h" />
<ClInclude Include="..\src\lib\devices\CECBusDevice.h" />
+ <ClInclude Include="..\src\lib\devices\CECDeviceMap.h" />
<ClInclude Include="..\src\lib\devices\CECPlaybackDevice.h" />
<ClInclude Include="..\src\lib\devices\CECRecordingDevice.h" />
<ClInclude Include="..\src\lib\devices\CECTuner.h" />
<ClCompile Include="..\src\lib\adapter\USBCECAdapterDetection.cpp" />
<ClCompile Include="..\src\lib\adapter\USBCECAdapterMessage.cpp" />
<ClCompile Include="..\src\lib\adapter\USBCECAdapterMessageQueue.cpp" />
+ <ClCompile Include="..\src\lib\CECClient.cpp" />
<ClCompile Include="..\src\lib\CECProcessor.cpp" />
<ClCompile Include="..\src\lib\devices\CECAudioSystem.cpp" />
<ClCompile Include="..\src\lib\devices\CECBusDevice.cpp" />
+ <ClCompile Include="..\src\lib\devices\CECDeviceMap.cpp" />
<ClCompile Include="..\src\lib\devices\CECPlaybackDevice.cpp" />
<ClCompile Include="..\src\lib\devices\CECRecordingDevice.cpp" />
<ClCompile Include="..\src\lib\devices\CECTuner.cpp" />
<ClInclude Include="..\src\lib\adapter\USBCECAdapterMessageQueue.h">
<Filter>adapter</Filter>
</ClInclude>
+ <ClInclude Include="..\src\lib\CECClient.h" />
+ <ClInclude Include="..\src\lib\CECInputBuffer.h" />
+ <ClInclude Include="..\src\lib\devices\CECDeviceMap.h">
+ <Filter>devices</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\lib\CECProcessor.cpp" />
<ClCompile Include="..\src\lib\adapter\USBCECAdapterMessageQueue.cpp">
<Filter>adapter</Filter>
</ClCompile>
+ <ClCompile Include="..\src\lib\CECClient.cpp" />
+ <ClCompile Include="..\src\lib\devices\CECDeviceMap.cpp">
+ <Filter>devices</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="libcec.rc" />
else if (m_configuration.bActivateSource == 1 && bIsRunning && !m_processor->IsActiveSource(m_configuration.logicalAddresses.primary))
{
// activate the source if we're not already the active source
- m_processor->SetActiveSource(m_configuration.deviceTypes.types[0]);
+ SendSetActiveSource(m_configuration.deviceTypes.types[0]);
}
// persist the configuration
cec_osd_name CLibCEC::GetDeviceOSDName(cec_logical_address iAddress)
{
cec_osd_name retVal;
+ retVal.device = CECDEVICE_UNKNOWN;
+ memset(retVal.name, 0, 14);
+
if (m_client)
retVal = m_client->GetDeviceOSDName(iAddress);
return retVal;
#include "CECRecordingDevice.h"
#include "CECTuner.h"
#include "CECTV.h"
-#include "CECProcessor.h"
+#include "../CECProcessor.h"
using namespace std;
using namespace CEC;
{
for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
{
- if (configuration.powerOffDevices[it->first])
+ if (configuration.powerOffDevices[(uint8_t)it->first])
devices.push_back(it->second);
}
}
{
for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
{
- if (configuration.wakeDevices[it->first])
+ if (configuration.wakeDevices[(uint8_t)it->first])
devices.push_back(it->second);
}
}