hog: implement get_report functionality

System Internals / BlueZ - Benjamin Tissoires [redhat.com] - 26 November 2014 01:57 UTC

When UHID_GET_REPORT is received, hog has to update the current value of the report and send it back to the caller.

This function should be synchronous, so the answer is sent in get_report_cb().

(David: Track reports and cancel them on uhid timeouts. Otherwise, we'd incorrectly match reponses. Also fix "feature"->"get" typos and handle reports without IDs)

9b58288 hog: implement get_report functionality
profiles/input/hog.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 86 insertions(+)

Upstream: git.kernel.org


  • Share