cec: store the status of a bus device: present, not present or handled by libcec
[deb_libcec.git] / src / testclient / main.cpp
index b06ef1dffc886f9194eef2fe3047e2aa4aa35b46..73d69905186d177d6193b0d6c98f280ad6634aa5 100644 (file)
@@ -269,9 +269,9 @@ void ShowHelpConsole(void)
 
 int main (int argc, char *argv[])
 {
-  int iPhysicalAddress = -1;
+  int16_t iPhysicalAddress = -1;
   cec_device_type_list typeList;
-  typeList.Clear();
+  typeList.clear();
 
   int iArgPtr = 1;
   bool bSingleCommand(false);
@@ -329,25 +329,25 @@ int main (int argc, char *argv[])
           {
             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
           {
@@ -403,8 +403,8 @@ int main (int argc, char *argv[])
   if (typeList.IsEmpty())
   {
     if (!bSingleCommand)
-      cout << "No device type given. Using 'playback device'" << endl;
-    typeList.Add(CEC_DEVICE_TYPE_PLAYBACK_DEVICE);
+      cout << "No device type given. Using 'recording device'" << endl;
+    typeList.add(CEC_DEVICE_TYPE_RECORDING_DEVICE);
   }
 
   ICECAdapter *parser = LibCecInit("CECTester", typeList);