| 1122 | } |
| 1123 | |
| 1124 | int HID_API_EXPORT hid_get_feature_report(hid_device *dev, unsigned char *data, size_t length) |
| 1125 | { |
| 1126 | int res; |
| 1127 | |
| 1128 | register_device_error(dev, NULL); |
| 1129 | |
| 1130 | res = ioctl(dev->device_handle, HIDIOCGFEATURE(length), data); |
| 1131 | if (res < 0) |
| 1132 | register_device_error_format(dev, "ioctl (GFEATURE): %s", strerror(errno)); |
| 1133 | |
| 1134 | return res; |
| 1135 | } |
| 1136 | |
| 1137 | int HID_API_EXPORT HID_API_CALL hid_get_input_report(hid_device *dev, unsigned char *data, size_t length) |
| 1138 | { |
nothing calls this directly
no test coverage detected