X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FAdapterCommunication.h;h=badeae9cf0fe3285b636deb941fe7fac1a81f48b;hb=50aa01e6895383ff8e96af9b9d0b4641cc3b61f2;hp=934915ba336782e4ee55f1fa7619e1f8cfe6099c;hpb=9dee1670cb5167360026a910a33de46e811a8588;p=deb_libcec.git diff --git a/src/lib/AdapterCommunication.h b/src/lib/AdapterCommunication.h index 934915b..badeae9 100644 --- a/src/lib/AdapterCommunication.h +++ b/src/lib/AdapterCommunication.h @@ -31,8 +31,9 @@ * http://www.pulse-eight.net/ */ -#include "../../include/CECExports.h" +#include #include "platform/threads.h" +#include "util/buffer.h" #include namespace CEC @@ -67,9 +68,7 @@ namespace CEC CSerialPort * m_port; CLibCEC * m_controller; - uint8_t* m_inbuf; - int16_t m_iInbufSize; - int16_t m_iInbufUsed; + CecBuffer m_inBuffer; CMutex m_bufferMutex; CMutex m_commMutex; CCondition m_rcvCondition;