X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fimplementations%2FVLCommandHandler.h;h=893905766318586502b45d08de7b40fffea25404;hb=9a54dc825e7730a1f2cb8edb201256dbd88da614;hp=6770947ab892f2407708f5f00eda9b58db71298e;hpb=b47f66afc453fb3fdbad051aceb44941a49965ba;p=deb_libcec.git diff --git a/src/lib/implementations/VLCommandHandler.h b/src/lib/implementations/VLCommandHandler.h index 6770947..8939057 100644 --- a/src/lib/implementations/VLCommandHandler.h +++ b/src/lib/implementations/VLCommandHandler.h @@ -40,13 +40,16 @@ namespace CEC public: CVLCommandHandler(CCECBusDevice *busDevice); virtual ~CVLCommandHandler(void) {}; - virtual bool InitHandler(void); - virtual bool HandleDeviceVendorCommandWithId(const cec_command &command); - virtual bool TransmitActiveSource(const cec_logical_address iInitiator, uint16_t iPhysicalAddress); - virtual bool TransmitPendingActiveSourceCommands(void); + bool InitHandler(void); + + int HandleDeviceVendorCommandWithId(const cec_command &command); + bool TransmitActiveSource(const cec_logical_address iInitiator, uint16_t iPhysicalAddress); + bool TransmitPendingActiveSourceCommands(void); 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;