X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FCECProcessor.h;h=a78c41f9309c9518ad4d4809eddc0597ad758ed3;hb=9b53a148ade63466655e6e5d8cb0ca2b64a76ae3;hp=e4f0a6b1b07077dee86159a24fb1d3355e1dceae;hpb=2db8981f49fbd167ddbbf19c1fbadd064abc332a;p=deb_libcec.git diff --git a/src/lib/CECProcessor.h b/src/lib/CECProcessor.h index e4f0a6b..a78c41f 100644 --- a/src/lib/CECProcessor.h +++ b/src/lib/CECProcessor.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. @@ -33,8 +33,8 @@ #include #include -#include "AdapterCommunication.h" -#include "platform/os.h" +#include "adapter/AdapterCommunication.h" +#include "platform/util/buffer.h" class CSerialPort; @@ -117,18 +117,14 @@ namespace CEC virtual bool Transmit(CCECAdapterMessage *output); virtual void TransmitAbort(cec_logical_address address, cec_opcode opcode, cec_abort_reason reason = CEC_ABORT_REASON_UNRECOGNIZED_OPCODE); - virtual void SetCurrentButton(cec_user_control_code iButtonCode); - virtual void AddCommand(const cec_command &command); - virtual void AddKey(cec_keypress &key); - virtual void AddKey(void); - virtual void AddLog(cec_log_level level, const CStdString &strMessage); - virtual bool ChangeDeviceType(cec_device_type from, cec_device_type to); virtual bool FindLogicalAddresses(void); virtual bool SetAckMask(uint16_t iMask); virtual bool StartBootloader(void); virtual bool PingAdapter(void); + virtual void HandlePoll(cec_logical_address initiator, cec_logical_address destination); + virtual bool HandleReceiveFailed(void); CCECBusDevice * m_busDevices[16]; PLATFORM::CMutex m_transmitMutex; @@ -148,7 +144,6 @@ namespace CEC bool FindLogicalAddressAudioSystem(void); void LogOutput(const cec_command &data); - bool WaitForTransmitSucceeded(CCECAdapterMessage *message); bool ParseMessage(const CCECAdapterMessage &msg); void ParseCommand(cec_command &command);