MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / hid_free_enumeration

Function hid_free_enumeration

lib/hidapi/windows/hid.c:865–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865void 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
880HID_API_EXPORT hid_device * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number)
881{

Callers 3

free_hid_deviceFunction · 0.70
hid.cFile · 0.70
mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected