Logo Search packages:      
Sourcecode: scanbuttond version File versions  Download package

int scanbtnd_rescan ( void   )

Refreshes the list of supported devices. After this function has been called, scanbtnd_get_supported_devices() should only return devices which are currently present on this system.

Returns:
0 if successful, <0 otherwise

Definition at line 153 of file artec_eplus48u.c.

{
      libusb_device_t *devices;

      artec_detach_scanners();
      artec_scanners = NULL;
      libusb_rescan(libusb_handle);
      devices = libusb_get_devices(libusb_handle);
      artec_scan_devices(devices);
      return 0;
}

Generated by  Doxygen 1.6.0   Back to index