X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FCECCommandHandler.h;h=afd1315afa02d473a3ed24fe691b99d083cd1079;hb=cf4931be43a04e39ae7041e115f5a07cec530031;hp=70763c8e3182cb15508f83d2cf144f2b2250a871;hpb=7b74fdfb8d43b0044fc3e55f5f8d9263ed636e3b;p=deb_libcec.git diff --git a/src/lib/implementations/CECCommandHandler.h b/src/lib/implementations/CECCommandHandler.h index 70763c8..afd1315 100644 --- a/src/lib/implementations/CECCommandHandler.h +++ b/src/lib/implementations/CECCommandHandler.h @@ -48,7 +48,8 @@ namespace CEC virtual ~CCECCommandHandler(void); virtual bool HandleCommand(const cec_command &command); - virtual cec_vendor_id GetVendorId(void) { return CEC_VENDOR_UNKNOWN; }; + virtual cec_vendor_id GetVendorId(void) { return m_vendorId; }; + virtual void SetVendorId(cec_vendor_id vendorId) { m_vendorId = vendorId; } virtual void HandlePoll(const cec_logical_address iInitiator, const cec_logical_address iDestination); virtual bool HandleReceiveFailed(void); @@ -142,6 +143,7 @@ namespace CEC uint8_t m_iUseCounter; cec_opcode m_expectedResponse; bool m_bOPTSendDeckStatusUpdateOnActiveSource; + cec_vendor_id m_vendorId; CMutex m_receiveMutex; CCondition m_condition; };