| 441 | } |
| 442 | |
| 443 | bool tryGetDevice(libusb_device *usb_device, Freenect2DeviceImpl **device) |
| 444 | { |
| 445 | if (!initialized) |
| 446 | return false; |
| 447 | |
| 448 | for(DeviceVector::iterator it = devices_.begin(); it != devices_.end(); ++it) |
| 449 | { |
| 450 | if((*it)->isSameUsbDevice(usb_device)) |
| 451 | { |
| 452 | *device = *it; |
| 453 | return true; |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | return false; |
| 458 | } |
| 459 | |
| 460 | void clearDevices() |
| 461 | { |
nothing calls this directly
no test coverage detected