| 476 | } |
| 477 | |
| 478 | void clearDeviceEnumeration() |
| 479 | { |
| 480 | if (!initialized) |
| 481 | return; |
| 482 | |
| 483 | // free enumerated device pointers, this should not affect opened devices |
| 484 | for(UsbDeviceVector::iterator it = enumerated_devices_.begin(); it != enumerated_devices_.end(); ++it) |
| 485 | { |
| 486 | libusb_unref_device(it->dev); |
| 487 | } |
| 488 | |
| 489 | enumerated_devices_.clear(); |
| 490 | has_device_enumeration_ = false; |
| 491 | } |
| 492 | |
| 493 | void enumerateDevices() |
| 494 | { |
no test coverage detected