X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FVLCommandHandler.h;h=8b26741fda621e0b8864a40796d8344780a4779e;hb=92eea1e751ae678059402e04688b3b94700b7013;hp=57213e96e5328d869286e167c2fd308c750c2be5;hpb=bb5b4874f081aea758af58eae11f4729fc679650;p=deb_libcec.git diff --git a/src/lib/implementations/VLCommandHandler.h b/src/lib/implementations/VLCommandHandler.h index 57213e9..8b26741 100644 --- a/src/lib/implementations/VLCommandHandler.h +++ b/src/lib/implementations/VLCommandHandler.h @@ -2,7 +2,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -40,9 +40,21 @@ namespace CEC public: CVLCommandHandler(CCECBusDevice *busDevice); virtual ~CVLCommandHandler(void) {}; - virtual cec_vendor_id GetVendorId(void) { return CEC_VENDOR_PANASONIC; }; - protected: - virtual bool HandleSetStreamPath(const cec_command &command); + bool InitHandler(void); + + int HandleDeviceVendorCommandWithId(const cec_command &command); + bool TransmitActiveSource(const cec_logical_address iInitiator, uint16_t iPhysicalAddress); + bool TransmitPendingActiveSourceCommands(void); + + int HandleVendorCommand(const cec_command &command); + bool PowerUpEventReceived(void); + bool SupportsDeviceType(const cec_device_type type) const { return type != CEC_DEVICE_TYPE_RECORDING_DEVICE; }; + cec_device_type GetReplacementDeviceType(const cec_device_type type) const { return type == CEC_DEVICE_TYPE_RECORDING_DEVICE ? CEC_DEVICE_TYPE_PLAYBACK_DEVICE : type; } + + private: + PLATFORM::CMutex m_mutex; + bool m_bActiveSourcePending; + bool m_bPowerUpEventReceived; }; };