removed deprecated methods and fields
[deb_libcec.git] / src / LibCecSharp / CecSharpTypes.h
index c5247965e618ccaa448c03ac7a5860737d14adb2..52c0b2020797bfd702ddbc4aa293395f49947f27 100644 (file)
@@ -254,14 +254,22 @@ namespace CecSharp
 
        public enum class CecVendorId
        {
-               Samsung   = 0x00F0,
-               LG        = 0xE091,
-               Panasonic = 0x8045,
-               Pioneer   = 0xE036,
-               Onkyo     = 0x09B0,
-               Yamaha    = 0xA0DE,
-               Philips   = 0x903E,
+               Samsung   = 0x0000F0,
+               LG        = 0x00E091,
+               Panasonic = 0x008045,
+               Pioneer   = 0x00E036,
+               Onkyo     = 0x0009B0,
+               Yamaha    = 0x00A0DE,
+               Philips   = 0x00903E,
                Sony      = 0x080046,
+               Toshiba   = 0x000039,
+               Akai      = 0x0020C7,
+               Benq      = 0x8065E9,
+               Daewoo    = 0x009053,
+               Grundig   = 0x00D0D5,
+               Medion    = 0x000CB8,
+               Sharp     = 0x08001F,
+               Vizio     = 0x6B746D,
                Unknown   = 0
        };
 
@@ -360,7 +368,12 @@ namespace CecSharp
                Version1_6_2  = 0x1602,
                Version1_6_3  = 0x1603,
                Version1_7_0  = 0x1700,
-               Version1_7_1  = 0x1701
+               Version1_7_1  = 0x1701,
+               Version1_7_2  = 0x1702,
+               Version1_8_0  = 0x1800,
+               Version1_8_1  = 0x1801,
+               Version1_8_2  = 0x1802,
+               Version1_9_0  = 0x1900
        };
 
        public enum class CecServerVersion
@@ -375,7 +388,12 @@ namespace CecSharp
                Version1_6_2  = 0x1602,
                Version1_6_3  = 0x1603,
                Version1_7_0  = 0x1700,
-               Version1_7_1  = 0x1701
+               Version1_7_1  = 0x1701,
+               Version1_7_2  = 0x1702,
+               Version1_8_0  = 0x1800,
+               Version1_8_1  = 0x1801,
+               Version1_8_2  = 0x1802,
+               Version1_9_0  = 0x1900
        };
 
        public ref class CecAdapter
@@ -415,6 +433,7 @@ namespace CecSharp
 
                void Clear(void)
                {
+                       Primary = CecLogicalAddress::Unknown;
                        for (unsigned int iPtr = 0; iPtr < 16; iPtr++)
                                Addresses[iPtr] = CecLogicalAddress::Unknown;
                }
@@ -427,6 +446,8 @@ namespace CecSharp
          void Set(CecLogicalAddress iAddress)
                {
                        Addresses[(unsigned int)iAddress] = iAddress;
+                       if (Primary == CecLogicalAddress::Unknown)
+                               Primary = iAddress;
                }
 
                property CecLogicalAddress          Primary;