X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecSharp%2FCecSharpTypes.h;h=52c0b2020797bfd702ddbc4aa293395f49947f27;hb=e3aabeacf9e2c2a7aab608ed173a7070af266e2b;hp=33f3200ec10c7f858598061685eb6cc1eb55eb9a;hpb=04283ce44fc45cbfb145075d02ff116e277f7560;p=deb_libcec.git diff --git a/src/LibCecSharp/CecSharpTypes.h b/src/LibCecSharp/CecSharpTypes.h index 33f3200..52c0b20 100644 --- a/src/LibCecSharp/CecSharpTypes.h +++ b/src/LibCecSharp/CecSharpTypes.h @@ -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;