OLD | NEW |
1 /* | 1 /* |
2 * libusb example program to manipulate U.are.U 4000B fingerprint scanner. | 2 * libusb example program to manipulate U.are.U 4000B fingerprint scanner. |
3 * Copyright (C) 2007 Daniel Drake <dsd@gentoo.org> | 3 * Copyright (C) 2007 Daniel Drake <dsd@gentoo.org> |
4 * | 4 * |
5 * Basic image capture program only, does not consider the powerup quirks or | 5 * Basic image capture program only, does not consider the powerup quirks or |
6 * the fact that image encryption may be enabled. Not expected to work | 6 * the fact that image encryption may be enabled. Not expected to work |
7 * flawlessly all of the time. | 7 * flawlessly all of the time. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 set_mode(0); | 536 set_mode(0); |
537 set_hwstat(0x80); | 537 set_hwstat(0x80); |
538 out_release: | 538 out_release: |
539 libusb_release_interface(devh, 0); | 539 libusb_release_interface(devh, 0); |
540 out: | 540 out: |
541 libusb_close(devh); | 541 libusb_close(devh); |
542 libusb_exit(NULL); | 542 libusb_exit(NULL); |
543 return r >= 0 ? r : -r; | 543 return r >= 0 ? r : -r; |
544 } | 544 } |
545 | 545 |
OLD | NEW |