cec: mark the tv as powered up for panasonic once it sends the audiomode request
[deb_libcec.git] / src / lib / CECTypeUtils.h
index 5e39f547d73b0db8b012a40cc39371213d9dd501..a8d0da1e4dde74834f17aba36e5a52e22363706a 100644 (file)
@@ -523,6 +523,8 @@ namespace CEC
         return "1.6.3";
       case CEC_CLIENT_VERSION_1_7_0:
         return "1.7.0";
+      case CEC_CLIENT_VERSION_1_7_1:
+        return "1.7.1";
       default:
         return "Unknown";
       }
@@ -552,9 +554,30 @@ namespace CEC
         return "1.6.3";
       case CEC_SERVER_VERSION_1_7_0:
         return "1.7.0";
+      case CEC_SERVER_VERSION_1_7_1:
+        return "1.7.1";
       default:
         return "Unknown";
       }
     }
+
+    static const char *ToString(const cec_abort_reason reason)
+    {
+      switch(reason)
+      {
+      case CEC_ABORT_REASON_UNRECOGNIZED_OPCODE:
+        return "unrecognised opcode";
+      case CEC_ABORT_REASON_NOT_IN_CORRECT_MODE_TO_RESPOND:
+        return "not in correct mode to respond";
+      case CEC_ABORT_REASON_CANNOT_PROVIDE_SOURCE:
+        return "cannot provide source";
+      case CEC_ABORT_REASON_INVALID_OPERAND:
+        return "invalid operand";
+      case CEC_ABORT_REASON_REFUSED:
+        return "refused";
+      default:
+        return "unknown";
+      }
+    }
   };
 }