X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecTray%2Fcontroller%2FCECController.cs;h=c1a6ed32e29c26411121a2686d0e8709d680488a;hb=c66fdf1fa601bf4e30c603eccbed9799e5339628;hp=13d75201cbdd644a7e63c9834ff87f7488da40fc;hpb=496897540ebcc6fc13b346aa5e08f2148a2770c7;p=deb_libcec.git diff --git a/src/LibCecTray/controller/CECController.cs b/src/LibCecTray/controller/CECController.cs index 13d7520..c1a6ed3 100644 --- a/src/LibCecTray/controller/CECController.cs +++ b/src/LibCecTray/controller/CECController.cs @@ -1,7 +1,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -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 } /// - /// Get the usb vid:prod descriptor + /// Get the usb vendor id /// - 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")); - } + /// + /// Get the usb product id + /// + public ushort AdapterProductId + { + get { return Lib.GetAdapterProductId(); } } + /// /// libCEC ///