cec_device_type types[5];
#ifdef __cplusplus
- void Clear(void)
+ void clear(void)
{
for (unsigned int iPtr = 0; iPtr < 5; iPtr++)
types[iPtr] = CEC_DEVICE_TYPE_RESERVED;
}
- void Add(const cec_device_type type)
+ void add(const cec_device_type type)
{
for (unsigned int iPtr = 0; iPtr < 5; iPtr++)
{
{
m_logicalAddresses.Clear();
m_logicalAddresses.Set(iLogicalAddress);
- m_types.Clear();
+ m_types.clear();
for (int iPtr = 0; iPtr <= 16; iPtr++)
m_busDevices[iPtr] = new CCECBusDevice(this, (cec_logical_address) iPtr, iPtr == iLogicalAddress ? iPhysicalAddress : 0);
}
{
int iPhysicalAddress = -1;
cec_device_type_list typeList;
- typeList.Clear();
+ typeList.clear();
int iArgPtr = 1;
bool bSingleCommand(false);
{
if (!bSingleCommand)
cout << "== using device type 'playback device'" << endl;
- typeList.Add(CEC_DEVICE_TYPE_PLAYBACK_DEVICE);
+ typeList.add(CEC_DEVICE_TYPE_PLAYBACK_DEVICE);
}
else if (!strcmp(argv[iArgPtr + 1], "r"))
{
if (!bSingleCommand)
cout << "== using device type 'recording device'" << endl;
- typeList.Add(CEC_DEVICE_TYPE_RECORDING_DEVICE);
+ typeList.add(CEC_DEVICE_TYPE_RECORDING_DEVICE);
}
else if (!strcmp(argv[iArgPtr + 1], "t"))
{
if (!bSingleCommand)
cout << "== using device type 'tuner'" << endl;
- typeList.Add(CEC_DEVICE_TYPE_TUNER);
+ typeList.add(CEC_DEVICE_TYPE_TUNER);
}
else if (!strcmp(argv[iArgPtr + 1], "a"))
{
if (!bSingleCommand)
cout << "== using device type 'audio system'" << endl;
- typeList.Add(CEC_DEVICE_TYPE_AUDIO_SYSTEM);
+ typeList.add(CEC_DEVICE_TYPE_AUDIO_SYSTEM);
}
else
{
{
if (!bSingleCommand)
cout << "No device type given. Using 'playback device'" << endl;
- typeList.Add(CEC_DEVICE_TYPE_PLAYBACK_DEVICE);
+ typeList.add(CEC_DEVICE_TYPE_PLAYBACK_DEVICE);
}
ICECAdapter *parser = LibCecInit("CECTester", typeList);