aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance/cec-compliance.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-10-14 14:33:37 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-10-14 14:41:19 +0200
commitf87baf65b16328e6bdf8ead57f54ace229caa3c9 (patch)
treef0396669b82f1d309fd8d8ecd9cb7a7f0ddc27a5 /utils/cec-compliance/cec-compliance.h
parentc0cbb2ed061e0d597cea905af98b84114d3c0b05 (diff)
cec-compliance: add timeout to util_receive
util_receive() can currently loop indefinitely if it never gets the expected reply. Add a timeout. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/cec-compliance/cec-compliance.h')
-rw-r--r--utils/cec-compliance/cec-compliance.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/cec-compliance/cec-compliance.h b/utils/cec-compliance/cec-compliance.h
index b983bdba..4b3c163c 100644
--- a/utils/cec-compliance/cec-compliance.h
+++ b/utils/cec-compliance/cec-compliance.h
@@ -387,8 +387,9 @@ const char *host_func_state2s(__u8 hfs);
const char *enc_func_state2s(__u8 efs);
const char *cdc_errcode2s(__u8 cdc_errcode);
int check_0(const void *p, int len);
-bool util_receive(struct node *node, unsigned la, struct cec_msg *msg,
- __u8 sent_msg, __u8 reply1, __u8 reply2 = 0);
+int util_receive(struct node *node, unsigned la, unsigned timeout,
+ struct cec_msg *msg, __u8 sent_msg,
+ __u8 reply1, __u8 reply2 = 0);
// CEC adapter tests
int testCap(struct node *node);

Privacy Policy