~ubuntu-branches/ubuntu/trusty/libusbx/trusty

« back to all changes in this revision

Viewing changes to examples/fxload.c

  • Committer: Package Import Robot
  • Author(s): Aurelien Jarno
  • Date: 2013-07-12 19:49:06 UTC
  • mfrom: (1.1.3)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: package-import@ubuntu.com-20130712194906-4l816fbge4ky7b2e
* New upstream version, last one from the libusbx, the next one will
  be called libusb again.
  - Build depends on libudev-dev.
  - Update symbol files.
* Bump Standards-Version to 3.9.4 (no changes).
* Move documentation to a -doc package.
* Set the -dev package as Multiarch: same.
* Support parallel building.
* Compress the .deb files with xz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
        }
243
243
 
244
244
        /* We need to claim the first interface */
 
245
        libusb_set_auto_detach_kernel_driver(device, 1);
245
246
        status = libusb_claim_interface(device, 0);
246
 
#if defined(__linux__)
247
 
        if (status != LIBUSB_SUCCESS) {
248
 
                /* Maybe we need to detach the driver */
249
 
                libusb_detach_kernel_driver(device, 0);
250
 
                status = libusb_claim_interface(device, 0);
251
 
        }
252
 
#endif
253
247
        if (status != LIBUSB_SUCCESS) {
254
248
                logerror("libusb_claim_interface failed: %s\n", libusb_error_name(status));
255
249
                goto err;