X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fadapter%2FUSBCECAdapterCommunication.h;h=0177f0850c7273fdf0e1b102e5324f48243c4d5b;hb=7937b924bc92b9194bc9ad7c12af6aa08cecd819;hp=a1171588bdd0777b9f1523b5acaf2f1c64c79178;hpb=b32ffd87ed707124e700477e8b2a10f6132de2c8;p=deb_libcec.git diff --git a/src/lib/adapter/USBCECAdapterCommunication.h b/src/lib/adapter/USBCECAdapterCommunication.h index a117158..0177f08 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.h +++ b/src/lib/adapter/USBCECAdapterCommunication.h @@ -74,11 +74,13 @@ namespace CEC bool StartBootloader(void); bool SetAckMask(uint16_t iMask); + uint16_t GetAckMask(void); bool PingAdapter(void); uint16_t GetFirmwareVersion(void); uint32_t GetFirmwareBuildDate(void); - bool PersistConfiguration(libcec_configuration *configuration); - bool GetConfiguration(libcec_configuration *configuration); + bool IsRunningLatestFirmware(void); + bool PersistConfiguration(const libcec_configuration &configuration); + bool GetConfiguration(libcec_configuration &configuration); CStdString GetPortName(void); uint16_t GetPhysicalAddress(void) { return 0; } bool SetControlledMode(bool controlled); @@ -155,6 +157,11 @@ namespace CEC */ void MarkAsWaiting(const cec_logical_address dest); + /*! + * @brief Clear and reset the message queue. + */ + void ResetMessageQueue(void); + PLATFORM::ISocket * m_port; /**< the com port connection */ PLATFORM::CMutex m_mutex; /**< mutex for changes in this class */ uint8_t m_iLineTimeout; /**< the current line timeout on the CEC line */ @@ -164,6 +171,7 @@ namespace CEC CAdapterPingThread * m_pingThread; /**< ping thread, that pings the adapter every 15 seconds */ CUSBCECAdapterCommands * m_commands; /**< commands that can be sent to the adapter */ CCECAdapterMessageQueue * m_adapterMessageQueue; /**< the incoming and outgoing message queue */ + uint16_t m_iAckMask; }; class CAdapterPingThread : public PLATFORM::CThread