| 863 | } |
| 864 | |
| 865 | void HID_API_EXPORT HID_API_CALL hid_free_enumeration(struct hid_device_info *devs) |
| 866 | { |
| 867 | /* TODO: Merge this with the Linux version. This function is platform-independent. */ |
| 868 | struct hid_device_info *d = devs; |
| 869 | while (d) { |
| 870 | struct hid_device_info *next = d->next; |
| 871 | free(d->path); |
| 872 | free(d->serial_number); |
| 873 | free(d->manufacturer_string); |
| 874 | free(d->product_string); |
| 875 | free(d); |
| 876 | d = next; |
| 877 | } |
| 878 | } |
| 879 | |
| 880 | HID_API_EXPORT hid_device * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number) |
| 881 | { |
no outgoing calls
no test coverage detected