| 1148 | } |
| 1149 | |
| 1150 | void HID_API_EXPORT hid_close(hid_device *dev) |
| 1151 | { |
| 1152 | if (!dev) |
| 1153 | return; |
| 1154 | |
| 1155 | close(dev->device_handle); |
| 1156 | |
| 1157 | /* Free the device error message */ |
| 1158 | register_device_error(dev, NULL); |
| 1159 | |
| 1160 | hid_free_enumeration(dev->device_info); |
| 1161 | |
| 1162 | free(dev); |
| 1163 | } |
| 1164 | |
| 1165 | |
| 1166 | int HID_API_EXPORT_CALL hid_get_manufacturer_string(hid_device *dev, wchar_t *string, size_t maxlen) |
no test coverage detected