X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=blobdiff_plain;f=src%2Flib%2Fadapter%2FRPi%2FRPiCECAdapterMessageQueue.h;fp=src%2Flib%2Fadapter%2FRPi%2FRPiCECAdapterMessageQueue.h;h=a6f4d7eb59881a43cbad6ac38e0f293178df983e;hp=af5756b68aa5588815f19344f74d3aa66434b9e8;hb=b45bdacdeee5c96e0294717fbe2c47a49a110fd1;hpb=81e38211724bc6e8bd7a60f484433053ed682635 diff --git a/src/lib/adapter/RPi/RPiCECAdapterMessageQueue.h b/src/lib/adapter/RPi/RPiCECAdapterMessageQueue.h index af5756b..a6f4d7e 100644 --- a/src/lib/adapter/RPi/RPiCECAdapterMessageQueue.h +++ b/src/lib/adapter/RPi/RPiCECAdapterMessageQueue.h @@ -33,6 +33,12 @@ #include "lib/platform/util/buffer.h" #include +#include "lib/adapter/AdapterCommunication.h" + +extern "C" { +#include +#include +} namespace CEC { @@ -64,6 +70,11 @@ namespace CEC */ bool IsWaiting(void); + /*! + * @brief Query result from worker thread + */ + uint32_t Result() const; + /*! * @return The command that was sent in human readable form. */ @@ -106,7 +117,7 @@ namespace CEC void MessageReceived(cec_opcode opcode, cec_logical_address initiator, cec_logical_address destination, uint32_t response); - bool Write(const cec_command &command, bool bIsReply); + cec_adapter_message_state Write(const cec_command &command, bool &bRetry, uint32_t iLineTimeout, bool bIsReply, VC_CEC_ERROR_T &vcReply); private: CRPiCECAdapterCommunication * m_com; /**< the communication handler */