added DetectAdapters() method, that returns all device information for detected adapt...
[deb_libcec.git] / include / cectypes.h
index e85bcfa44bccf45e3c182531a455f9b94c4ba374..002ff970de8cfe14ceb8852712061ecbb36e90d7 100644 (file)
@@ -820,26 +820,26 @@ typedef enum cec_bus_device_status
 
 typedef enum cec_vendor_id
 {
+  CEC_VENDOR_TOSHIBA   = 0x000039,
   CEC_VENDOR_SAMSUNG   = 0x0000F0,
-  CEC_VENDOR_LG        = 0x00E091,
-  CEC_VENDOR_PANASONIC = 0x008045,
-  CEC_VENDOR_PIONEER   = 0x00E036,
+  CEC_VENDOR_DENON     = 0x0005CD,
+  CEC_VENDOR_LOEWE     = 0x000982,
   CEC_VENDOR_ONKYO     = 0x0009B0,
-  CEC_VENDOR_YAMAHA    = 0x00A0DE,
-  CEC_VENDOR_PHILIPS   = 0x00903E,
-  CEC_VENDOR_SONY      = 0x080046,
-  CEC_VENDOR_TOSHIBA   = 0x000039,
+  CEC_VENDOR_MEDION    = 0x000CB8,
   CEC_VENDOR_AKAI      = 0x0020C7,
   CEC_VENDOR_AOC       = 0x002467,
-  CEC_VENDOR_BENQ      = 0x8065E9,
+  CEC_VENDOR_PANASONIC = 0x008045,
+  CEC_VENDOR_PHILIPS   = 0x00903E,
   CEC_VENDOR_DAEWOO    = 0x009053,
+  CEC_VENDOR_YAMAHA    = 0x00A0DE,
   CEC_VENDOR_GRUNDIG   = 0x00D0D5,
-  CEC_VENDOR_MEDION    = 0x000CB8,
+  CEC_VENDOR_PIONEER   = 0x00E036,
+  CEC_VENDOR_LG        = 0x00E091,
   CEC_VENDOR_SHARP     = 0x08001F,
-  CEC_VENDOR_VIZIO     = 0x6B746D,
+  CEC_VENDOR_SONY      = 0x080046,
   CEC_VENDOR_BROADCOM  = 0x18C086,
-  CEC_VENDOR_LOEWE     = 0x000982,
-   
+  CEC_VENDOR_VIZIO     = 0x6B746D,
+  CEC_VENDOR_BENQ      = 0x8065E9,
   CEC_VENDOR_UNKNOWN   = 0
 } cec_vendor_id;
 
@@ -883,6 +883,18 @@ typedef struct cec_adapter
   char comm[1024]; /**< the name of the com port */
 } cec_adapter;
 
+typedef struct cec_adapter_descriptor
+{
+  char             strComPath[1024]; /**< the path to the com port */
+  char             strComName[1024]; /**< the name of the com port */
+  uint16_t         iVendorId;
+  uint16_t         iProductId;
+  uint16_t         iFirmwareVersion;
+  uint16_t         iPhysicalAddress;
+  uint32_t         iFirmwareBuildDate;
+  cec_adapter_type adapterType;
+} cec_adapter_descriptor;
+
 typedef struct cec_datapacket
 {
   uint8_t data[100]; /**< the actual data */