| 1135 | } |
| 1136 | |
| 1137 | int HID_API_EXPORT HID_API_CALL hid_get_input_report(hid_device *dev, unsigned char *data, size_t length) |
| 1138 | { |
| 1139 | int res; |
| 1140 | |
| 1141 | register_device_error(dev, NULL); |
| 1142 | |
| 1143 | res = ioctl(dev->device_handle, HIDIOCGINPUT(length), data); |
| 1144 | if (res < 0) |
| 1145 | register_device_error_format(dev, "ioctl (GINPUT): %s", strerror(errno)); |
| 1146 | |
| 1147 | return res; |
| 1148 | } |
| 1149 | |
| 1150 | void HID_API_EXPORT hid_close(hid_device *dev) |
| 1151 | { |
nothing calls this directly
no test coverage detected