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

Function hid_close

lib/hidapi/linux/hid.c:1150–1163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1148}
1149
1150void 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
1166int HID_API_EXPORT_CALL hid_get_manufacturer_string(hid_device *dev, wchar_t *string, size_t maxlen)

Callers 1

hid.cFile · 0.70

Calls 2

register_device_errorFunction · 0.70
hid_free_enumerationFunction · 0.70

Tested by

no test coverage detected