X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fimplementations%2FSLCommandHandler.h;h=a0ea25a329cb3d49bc9716212ce0f8983b26908b;hb=415e9bad3a53bd27ab64550f741042adeccb68f0;hp=8012f2e8913f1a59bca341ef148e4beaeb77d120;hpb=5c3b1f92b98bfbc26c59ec8d21e66fc7fcbcd700;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.h b/src/lib/implementations/SLCommandHandler.h index 8012f2e..a0ea25a 100644 --- a/src/lib/implementations/SLCommandHandler.h +++ b/src/lib/implementations/SLCommandHandler.h @@ -32,6 +32,7 @@ */ #include "CECCommandHandler.h" +#include "../platform/util/timeutils.h" namespace CEC { @@ -64,9 +65,17 @@ namespace CEC virtual bool HandleRequestActiveSource(const cec_command &command); virtual bool HandleFeatureAbort(const cec_command &command); virtual bool HandleStandby(const cec_command &command); + virtual bool TransmitMenuState(const cec_logical_address UNUSED(iInitiator), const cec_logical_address UNUSED(iDestination), cec_menu_state UNUSED(menuState)) { return true; } + virtual bool PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination); - bool m_bSLEnabled; - bool m_bPowerStateReset; - bool m_bActiveSourceSent; + virtual void ResetSLState(void); + virtual bool SLInitialised(void); + virtual void SetSLInitialised(void); + virtual bool ActiveSourceSent(void); + + bool m_bSLEnabled; + bool m_bActiveSourceSent; + PLATFORM::CTimeout m_resetPowerState; + PLATFORM::CMutex m_SLMutex; }; };