X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecSharp%2FCecSharpTypes.h;h=0ba3c0481e55922a2a7353c1fe3a338bc2f7febc;hb=2b44051cbfa70deafc30d9767323214debbc1a75;hp=33f3200ec10c7f858598061685eb6cc1eb55eb9a;hpb=ebefc26c10d68ba9ced2a30c896dccc81c6c2eeb;p=deb_libcec.git diff --git a/src/LibCecSharp/CecSharpTypes.h b/src/LibCecSharp/CecSharpTypes.h index 33f3200..0ba3c04 100644 --- a/src/LibCecSharp/CecSharpTypes.h +++ b/src/LibCecSharp/CecSharpTypes.h @@ -368,7 +368,9 @@ 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 }; public enum class CecServerVersion @@ -383,7 +385,9 @@ 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 }; public ref class CecAdapter @@ -423,6 +427,7 @@ namespace CecSharp void Clear(void) { + Primary = CecLogicalAddress::Unknown; for (unsigned int iPtr = 0; iPtr < 16; iPtr++) Addresses[iPtr] = CecLogicalAddress::Unknown; } @@ -435,6 +440,8 @@ namespace CecSharp void Set(CecLogicalAddress iAddress) { Addresses[(unsigned int)iAddress] = iAddress; + if (Primary == CecLogicalAddress::Unknown) + Primary = iAddress; } property CecLogicalAddress Primary;