bump version numbers to 1.9.0
[deb_libcec.git] / src / LibCecSharp / CecSharpTypes.h
index 33f3200ec10c7f858598061685eb6cc1eb55eb9a..52c0b2020797bfd702ddbc4aa293395f49947f27 100644 (file)
@@ -368,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
@@ -383,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
@@ -423,6 +433,7 @@ namespace CecSharp
 
                void Clear(void)
                {
+                       Primary = CecLogicalAddress::Unknown;
                        for (unsigned int iPtr = 0; iPtr < 16; iPtr++)
                                Addresses[iPtr] = CecLogicalAddress::Unknown;
                }
@@ -435,6 +446,8 @@ namespace CecSharp
          void Set(CecLogicalAddress iAddress)
                {
                        Addresses[(unsigned int)iAddress] = iAddress;
+                       if (Primary == CecLogicalAddress::Unknown)
+                               Primary = iAddress;
                }
 
                property CecLogicalAddress          Primary;