X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FAdapterCommunication.h;h=48883bb2f3a07646d2b8894f0ad10c5493c67fe7;hb=7cc92235bb5794e28b7bdb6f057b9e6a4c160f2d;hp=160a0fd3c30c320f9d262e6b2725c48b61fc0673;hpb=a75e3a5a63546d6f7e670bc2a7a1931887a5d2a0;p=deb_libcec.git diff --git a/src/lib/adapter/AdapterCommunication.h b/src/lib/adapter/AdapterCommunication.h index 160a0fd..48883bb 100644 --- a/src/lib/adapter/AdapterCommunication.h +++ b/src/lib/adapter/AdapterCommunication.h @@ -81,7 +81,7 @@ namespace CEC * @param bStartListening Start a listener thread when true. False to just open a connection, read the device info, and close the connection. * @return True when connected, false otherwise */ - virtual bool Open(uint32_t iTimeoutMs = 10000, bool bSkipChecks = false, bool bStartListening = true) = 0; + virtual bool Open(uint32_t iTimeoutMs = CEC_DEFAULT_CONNECT_TIMEOUT, bool bSkipChecks = false, bool bStartListening = true) = 0; /*! * @brief Close an open connection @@ -101,12 +101,11 @@ namespace CEC /*! * @brief Write a cec_command to the adapter * @param data The command to write - * @param iMaxTries The maximum number of tries - * @param iLineTimeout The line timeout for the first try - * @param iRetryLineTimeout The line timeout for each next try + * @param bRetry The command can be retried + * @param iLineTimeout The line timeout to be used * @return The last state of the transmitted command */ - virtual cec_adapter_message_state Write(const cec_command &data, uint8_t iMaxTries, uint8_t iLineTimeout = 3, uint8_t iRetryLineTimeout = 3) = 0; + virtual cec_adapter_message_state Write(const cec_command &data, bool &bRetry, uint8_t iLineTimeout = 3) = 0; /*! * @brief Change the current line timeout on the CEC bus @@ -139,6 +138,11 @@ namespace CEC */ virtual uint16_t GetFirmwareVersion(void) = 0; + /*! + * @return The build date in seconds since epoch, or 0 when no (valid) reply was received. + */ + virtual uint32_t GetFirmwareBuildDate(void) = 0; + /*! * @return True when the control mode has been set, false otherwise. */