| 1109 | |
| 1110 | |
| 1111 | int HID_API_EXPORT hid_send_feature_report(hid_device *dev, const unsigned char *data, size_t length) |
| 1112 | { |
| 1113 | int res; |
| 1114 | |
| 1115 | register_device_error(dev, NULL); |
| 1116 | |
| 1117 | res = ioctl(dev->device_handle, HIDIOCSFEATURE(length), data); |
| 1118 | if (res < 0) |
| 1119 | register_device_error_format(dev, "ioctl (SFEATURE): %s", strerror(errno)); |
| 1120 | |
| 1121 | return res; |
| 1122 | } |
| 1123 | |
| 1124 | int HID_API_EXPORT hid_get_feature_report(hid_device *dev, unsigned char *data, size_t length) |
| 1125 | { |
nothing calls this directly
no test coverage detected