| 318 | } |
| 319 | |
| 320 | HID_API_EXPORT const wchar_t* HID_API_CALL hid_error(hid_device *device) |
| 321 | { |
| 322 | switch ( GetAPIForDevice( device ) ) |
| 323 | { |
| 324 | case k_EHIDAPIRAW: |
| 325 | return HIDRAW::hid_error( (HIDRAW::hid_device*)device ); |
| 326 | case k_EHIDAPIUSB: |
| 327 | return HIDUSB::hid_error( (HIDUSB::hid_device*)device ); |
| 328 | default: |
| 329 | return NULL; |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | } |
nothing calls this directly
no test coverage detected