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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 set_mode(0); | 498 set_mode(0); |
499 set_hwstat(0x80); | 499 set_hwstat(0x80); |
500 out_release: | 500 out_release: |
501 libusb_release_interface(devh, 0); | 501 libusb_release_interface(devh, 0); |
502 out: | 502 out: |
503 libusb_close(devh); | 503 libusb_close(devh); |
504 libusb_exit(NULL); | 504 libusb_exit(NULL); |
505 return r >= 0 ? r : -r; | 505 return r >= 0 ? r : -r; |
506 } | 506 } |
507 | 507 |
OLD | NEW |