X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FRPi%2FRPiCECAdapterMessageQueue.h;h=a6f4d7eb59881a43cbad6ac38e0f293178df983e;hb=f9c4a2de412487b78c333dc21d9b7e41a5fe69e3;hp=35d2859a80233e317f32f7232612e48a7ede57d1;hpb=b0a5e4fc9b66620b00f937f7e9a406bf22aaaf1d;p=deb_libcec.git diff --git a/src/lib/adapter/RPi/RPiCECAdapterMessageQueue.h b/src/lib/adapter/RPi/RPiCECAdapterMessageQueue.h index 35d2859..a6f4d7e 100644 --- a/src/lib/adapter/RPi/RPiCECAdapterMessageQueue.h +++ b/src/lib/adapter/RPi/RPiCECAdapterMessageQueue.h @@ -2,7 +2,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2013 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,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 */