cec: use CTryLockObject when trying to replace handlers in CCECBusDevice
[deb_libcec.git] / src / lib / adapter / USBCECAdapterCommunication.h
index ee8593fb583b641c81baaad75349cc8c5dd9fe5c..081568206f175946872809029f6f09ca0b64d44e 100644 (file)
@@ -31,7 +31,7 @@
  *     http://www.pulse-eight.net/
  */
 
-#include <cectypes.h>
+#include "../../../include/cectypes.h"
 #include "../platform/threads/threads.h"
 #include "../platform/util/buffer.h"
 #include "AdapterCommunication.h"
@@ -69,6 +69,7 @@ namespace CEC
 
     void *Process(void);
   private:
+    bool CheckAdapter(uint32_t iTimeoutMs = 10000);
     bool Write(CCECAdapterMessage *data);
     bool Read(CCECAdapterMessage &msg, uint32_t iTimeout = 1000);
     bool ParseMessage(const CCECAdapterMessage &msg);