X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.h;h=166bac02609e9027515d8e3cf658dd9affb978e5;hb=5d71f08c3211791a51f6d7b0bde3d41f2e56d71f;hp=ec2a4ae5ee8da337baab00a77fce9fe17c151cdf;hpb=75362c3c044a252f4d596ed8b28cad8069c2e781;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.h b/src/lib/implementations/SLCommandHandler.h index ec2a4ae..166bac0 100644 --- a/src/lib/implementations/SLCommandHandler.h +++ b/src/lib/implementations/SLCommandHandler.h @@ -2,7 +2,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -46,14 +46,13 @@ namespace CEC virtual ~CSLCommandHandler(void) {}; bool InitHandler(void); + bool ActivateSource(bool bTransmitDelayedCommandsOnly = false); protected: - int HandleActiveSource(const cec_command &command); - int HandleDeviceVendorId(const cec_command &command); int HandleVendorCommand(const cec_command &command); - void HandleVendorCommand01(const cec_command &command); - void TransmitVendorCommand0205(const cec_logical_address iSource, const cec_logical_address iDestination); + void HandleVendorCommandSLInit(const cec_command &command); + void TransmitVendorCommandSLAckInit(const cec_logical_address iSource, const cec_logical_address iDestination); void HandleVendorCommandPowerOn(const cec_command &command); void HandleVendorCommandPowerOnStatus(const cec_command &command); @@ -68,17 +67,12 @@ namespace CEC int HandleStandby(const cec_command &command); bool TransmitMenuState(const cec_logical_address UNUSED(iInitiator), const cec_logical_address UNUSED(iDestination), cec_menu_state UNUSED(menuState), bool UNUSED(bIsReply)) { return true; } bool PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination); - int HandleVendorRemoteButtonUp(const cec_command& command) { return HandleUserControlRelease(command); } void ResetSLState(void); bool SLInitialised(void); void SetSLInitialised(void); - bool ActiveSourceSent(void); - - void VendorPreActivateSourceHook(void); bool m_bSLEnabled; - bool m_bActiveSourceSent; PLATFORM::CTimeout m_resetPowerState; PLATFORM::CMutex m_SLMutex; };