From: Lars Op den Kamp Date: Tue, 28 Feb 2012 01:48:01 +0000 (+0100) Subject: LibCecSharp: implemented support for the new 'send inactive source' setting X-Git-Tag: upstream/2.2.0~1^2~33^2~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a8fffd1b5fe9ce8b60e110f08f69448c5eb5593a;p=deb_libcec.git LibCecSharp: implemented support for the new 'send inactive source' setting --- diff --git a/src/LibCecSharp/CecSharpTypes.h b/src/LibCecSharp/CecSharpTypes.h index 7107afc..65fa7cd 100644 --- a/src/LibCecSharp/CecSharpTypes.h +++ b/src/LibCecSharp/CecSharpTypes.h @@ -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; }; diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp index caf6054..76dd006 100644 --- a/src/LibCecSharp/LibCecSharp.cpp +++ b/src/LibCecSharp/LibCecSharp.cpp @@ -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; }