LibCecSharp: implemented support for the new 'send inactive source' setting
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 28 Feb 2012 01:48:01 +0000 (02:48 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 28 Feb 2012 01:48:01 +0000 (02:48 +0100)
src/LibCecSharp/CecSharpTypes.h
src/LibCecSharp/LibCecSharp.cpp

index 7107afcba90b9a25f878368f3da73bb1858ff5a5..65fa7cd4fa5e22bd2d8ba71b74edb39a91d73b33 100644 (file)
@@ -326,13 +326,15 @@ namespace CecSharp
        public enum class CecClientVersion
        {
                VersionPre1_5 = 0,
-               Version1_5_0  = 0x1500
+               Version1_5_0  = 0x1500,
+    Version1_5_1  = 0x1501
        };
 
   public enum class CecServerVersion
        {
                VersionPre1_5 = 0,
-               Version1_5_0  = 0x1500
+               Version1_5_0  = 0x1500,
+    Version1_5_1  = 0x1501
        };
 
        public ref class CecAdapter
@@ -547,6 +549,7 @@ namespace CecSharp
 
                        PowerOffScreensaver = CEC_DEFAULT_SETTING_POWER_OFF_SCREENSAVER == 1;
                        PowerOffOnStandby   = CEC_DEFAULT_SETTING_POWER_OFF_ON_STANDBY == 1;
+      SendInactiveSource  = CEC_DEFAULT_SETTING_SEND_INACTIVE_SOURCE == 1;
                }
 
                void SetCallbacks(CecCallbackMethods ^callbacks)
@@ -586,6 +589,7 @@ namespace CecSharp
 
                        PowerOffScreensaver = config.bPowerOffScreensaver == 1;
                        PowerOffOnStandby = config.bPowerOffOnStandby == 1;
+      SendInactiveSource = config.bSendInactiveSource == 1;
                }
 
                property System::String ^     DeviceName;
@@ -606,6 +610,7 @@ namespace CecSharp
                property CecLogicalAddresses ^PowerOffDevices;
                property bool                 PowerOffScreensaver;
                property bool                 PowerOffOnStandby;
+    property bool                 SendInactiveSource;
 
                property CecCallbackMethods ^ Callbacks;
        };
index caf60542859622a1576a42c342dc85f9eed197b4..76dd00624e7948d3fcbf9eedfcf7d73f156f1b86 100644 (file)
@@ -117,6 +117,7 @@ namespace CecSharp
                        }
                        config.bPowerOffScreensaver = netConfig->PowerOffScreensaver ? 1 : 0;
                        config.bPowerOffOnStandby   = netConfig->PowerOffOnStandby ? 1 : 0;
+      config.bSendInactiveSource  = netConfig->SendInactiveSource ? 1 : 0;
                        config.callbacks            = &g_cecCallbacks;
                }