summaryrefslogtreecommitdiff
path: root/src/class/hid/hid_device.h
diff options
context:
space:
mode:
authorZachery Littell <[email protected]>2020-10-01 12:51:48 -0500
committerZachery Littell <[email protected]>2020-10-01 12:51:48 -0500
commitb7208d6f7e97e724853eb5d0e512a23005cc8790 (patch)
treedbc116330e39198499dfe0c2ca0776dd8d57047b /src/class/hid/hid_device.h
parent849681724af698c77b01a615595418ba2efd543e (diff)
add index to report descriptor callback. this is breaking and needs to be reviewed
Diffstat (limited to 'src/class/hid/hid_device.h')
-rw-r--r--src/class/hid/hid_device.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/class/hid/hid_device.h b/src/class/hid/hid_device.h
index e6961515c..1873c4f09 100644
--- a/src/class/hid/hid_device.h
+++ b/src/class/hid/hid_device.h
@@ -86,7 +86,8 @@ static inline bool tud_hid_mouse_report(uint8_t report_id, uint8_t buttons, int8
// Invoked when received GET HID REPORT DESCRIPTOR request
// Application return pointer to descriptor, whose contents must exist long enough for transfer to complete
-uint8_t const * tud_hid_descriptor_report_cb(void);
+// TODO Talk about this change... because it is breaking. Might be better way to handle.
+uint8_t const * tud_hid_descriptor_report_cb(uint8_t desc_index);
// Invoked when received GET_REPORT control request
// Application must fill buffer report's content and return its length.