cec: don't retry polls
[deb_libcec.git] / include / cectypes.h
index 0fed3b56723e76053de3c367a7e058513e96f9ca..467f15049a422f8e9945130ab0a7d8706029a65d 100644 (file)
@@ -694,6 +694,7 @@ typedef struct cec_command
   cec_datapacket      parameters;
   int8_t              opcode_set;
   int32_t             transmit_timeout;
+  int8_t              retries;
 
 #ifdef __cplusplus
   cec_command &operator =(const struct cec_command &command)
@@ -706,6 +707,7 @@ typedef struct cec_command
     opcode_set       = command.opcode_set;
     transmit_timeout = command.transmit_timeout;
     parameters       = command.parameters;
+    retries          = command.retries;
 
     return *this;
   }
@@ -747,6 +749,7 @@ typedef struct cec_command
     opcode_set       = 0;
     opcode           = CEC_OPCODE_FEATURE_ABORT;
     transmit_timeout = 1000;
+    retries          = 4;
     parameters.Clear();
   };
 #endif