int main (int argc, char *argv[])
{
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 (typeList.empty())
+ if (typeList.IsEmpty())
{
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);
string strvalue;
uint8_t ivalue;
cec_command bytes;
- bytes.clear();
+ bytes.Clear();
while (GetWord(input, strvalue) && HexStrToInt(strvalue, ivalue))
- bytes.push_back(ivalue);
+ bytes.PushBack(ivalue);
if (command == "txn")
bytes.transmit_timeout = 0;