bump to libCEC v2.1.0. closes #125
[deb_libcec.git] / src / LibCecTray / controller / CECController.cs
index 13d75201cbdd644a7e63c9834ff87f7488da40fc..e82bce0c3279c020e2594a83d0e047d28dbbcc20 100644 (file)
@@ -438,7 +438,7 @@ namespace LibCECTray.controller
       {
         if (_config == null)
         {
-          _config = new LibCECConfiguration { DeviceName = "CEC Tray", ClientVersion = CecClientVersion.Version2_0_0 };
+          _config = new LibCECConfiguration { DeviceName = "CEC Tray", ClientVersion = CecClientVersion.Version2_1_0 };
           _config.DeviceTypes.Types[0] = CecDeviceType.RecordingDevice;
           _config.SetCallbacks(this);
 
@@ -491,19 +491,22 @@ namespace LibCECTray.controller
     }
 
     /// <summary>
-    /// Get the usb vid:prod descriptor
+    /// Get the usb vendor id
     /// </summary>
-    public string USBDescriptor
+    public ushort AdapterVendorId
     {
-      get
-      {
-        DateTime checkDate = new DateTime(1970, 1, 1, 0, 0, 0, 0);
-        checkDate = checkDate.AddSeconds(0x5045dbf5);
+      get { return Lib.GetAdapterVendorId(); }
+    }
 
-        return string.Format("2548:100{0}", ((DateTime)Config.FirmwareBuildDate >= checkDate ? "2" : "1"));
-      }
+    /// <summary>
+    /// Get the usb product id
+    /// </summary>
+    public ushort AdapterProductId
+    {
+      get { return Lib.GetAdapterProductId(); }
     }
 
+
     /// <summary>
     /// libCEC
     /// </summary>