MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / clearDeviceEnumeration

Method clearDeviceEnumeration

src/libfreenect2.cpp:478–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

enumerateDevicesMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected