MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / hid_close

Function hid_close

lib/sdl2/src/hidapi/linux/hid.cpp:252–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void HID_API_EXPORT HID_API_CALL hid_close(hid_device *device)
253{
254 switch ( GetAPIForDevice( device ) )
255 {
256 case k_EHIDAPIRAW:
257 HIDRAW::hid_close( (HIDRAW::hid_device*)device );
258 break;
259 case k_EHIDAPIUSB:
260 HIDUSB::hid_close( (HIDUSB::hid_device*)device );
261 break;
262 default:
263 break;
264 }
265 s_hashDeviceToAPI.Remove( (uintptr_t)device );
266}
267
268int HID_API_EXPORT_CALL hid_get_manufacturer_string(hid_device *device, wchar_t *string, size_t maxlen)
269{

Callers

nothing calls this directly

Calls 1

GetAPIForDeviceFunction · 0.85

Tested by

no test coverage detected