cec: set lib interface version back to 1.0 and rename GetLibVersion() to GetLibVersio...
[deb_libcec.git] / src / lib / LibCECC.cpp
index 2e9f31df51b3421f1272bf922c32a987a5522d37..a3be5f3bea89df0498af40851132a293f4ce6040 100644 (file)
@@ -92,14 +92,21 @@ int cec_start_bootloader(void)
 int8_t cec_get_min_version(void)
 {
   if (cec_parser)
-    return cec_parser->GetMinVersion();
+    return cec_parser->GetMinLibVersion();
   return -1;
 }
 
-int8_t cec_get_lib_version(void)
+int8_t cec_get_lib_version_major(void)
 {
   if (cec_parser)
-    return cec_parser->GetLibVersion();
+    return cec_parser->GetLibVersionMajor();
+  return -1;
+}
+
+int8_t cec_get_lib_version_minor(void)
+{
+  if (cec_parser)
+    return cec_parser->GetLibVersionMinor();
   return -1;
 }
 
@@ -201,4 +208,18 @@ int cec_get_device_menu_language(cec_logical_address iLogicalAddress, cec_menu_l
   return -1;
 }
 
+uint64_t cec_get_device_vendor_id(cec_logical_address iLogicalAddress)
+{
+  if (cec_parser)
+    return cec_parser->GetDeviceVendorId(iLogicalAddress);
+  return 0;
+}
+
+cec_power_status cec_get_device_power_status(cec_logical_address iLogicalAddress)
+{
+  if (cec_parser)
+    return cec_parser->GetDevicePowerStatus(iLogicalAddress);
+  return CEC_POWER_STATUS_UNKNOWN;
+}
+
 //@}