| 347 | } |
| 348 | |
| 349 | static char *make_path(libusb_device *dev, int interface_number) |
| 350 | { |
| 351 | char str[64]; |
| 352 | snprintf(str, sizeof(str), "%04x:%04x:%02x", |
| 353 | libusb_get_bus_number(dev), |
| 354 | libusb_get_device_address(dev), |
| 355 | interface_number); |
| 356 | str[sizeof(str)-1] = '\0'; |
| 357 | |
| 358 | return strdup(str); |
| 359 | } |
| 360 | |
| 361 | |
| 362 | int HID_API_EXPORT hid_init(void) |
no test coverage detected