cec: add GetDeviceCecVersion()/cec_get_device_cec_version() to the interface. mostly...
[deb_libcec.git] / src / lib / LibCECC.cpp
index 1f8416b0d573064c7811171ef75800be2307528b..cdc27783d018f2c1401ea4e1f94f4374310d9639 100644 (file)
@@ -187,4 +187,11 @@ int cec_switch_monitoring(int bEnable)
   return -1;
 }
 
+cec_version cec_get_device_cec_version(cec_logical_address iLogicalAddress)
+{
+  if (cec_parser)
+    return cec_parser->GetDeviceCecVersion(iLogicalAddress);
+  return CEC_VERSION_UNKNOWN;
+}
+
 //@}