summaryrefslogtreecommitdiffstats
path: root/lib/libusb
Commit message (Collapse)AuthorAgeFilesLines
* Resort includes to match style(9) a bit more. No functional changewkoszek2010-02-1310-32/+36
| | | | | | | is expected after this commit. Tested by: make buildworld Reviewed by: hps (patch without .h changes)
* Remove redundand headers and use more standard ones where necessary.wkoszek2010-02-116-11/+1
| | | | Reviewed by: hps@
* Use more standard way for setting nonblocking flag for a filedescriptor.wkoszek2010-02-111-7/+9
| | | | | | | | | | This makes libusb porting a bit easier. There shouldn't by any negative change in behaviour after this commit. Remove redundant headers. Reviewed by: hps@
* Within libusb 0.1 API, bus number is always faked to 0. Device numbers,wkoszek2010-02-111-0/+3
| | | | | | | | | | | | | | however, are possitive and seem to be reverse sorted in the list. Conform device numbering and bring a result that is consistent with the libusb 0.1 API. It is now possible to distinguish a device based on its (bus, dev) numbers. There shouldn't be any negative change in behavior after this commit. Tested with: scanimage (sane) http://freebsd.czest.pl/~wkoszek/qemu/l.c Reviewed by: hps@
* Add a function to check if the usb devices is still connected.thompsa2010-01-295-0/+44
| | | | Submitted by: Hans Petter Selasky
* Reset variable fields in case the transfer is opened againthompsa2010-01-101-1/+12
| | | | Submitted by: Hans Petter Selasky
* Build lib/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
* Fix libusb_open_device_with_vid_pid() to return a NULL if no device isscf2009-12-121-2/+2
| | | | | | | found instead of the last device in its search list. Reviewed by: thompsa MFC after: 5 days
* Sync to P4thompsa2009-11-205-11/+155
| | | | | | | | | - fix a transfer cancelling bug/segfault [1] - correct a return code in the transfer cancel function. - add new API function, libusb20_tr_bulk_intr_sync(). Submitted by: HPS Reported by: Robert Jenssen [1]
* - fix refcounting error during data transferthompsa2009-11-087-35/+251
| | | | | | | | | | | | | - fix a memory leak on the USB backend - fix invalid pointer computations (in one case memory outside the allocated area was written in LibUSB v1.0) - make sure memory is always initialised, also in failing cases - add missing functions from v1.0.4 PR: usb/140325 Reported by: Robert Jenssen Submitted by: Hans Petter Selasky MFC After: 3 days
* Prevent wraparound of the timeout variable.thompsa2009-10-221-1/+5
| | | | Submitted by: HPS
* LibUSB v1.0:alfred2009-07-309-1531/+1356
| | | | | | | | | - Significantly improve libusb10 support. - Many minor issues fixed. - P4 ID: 166189, 165853, 165991, 166052, 166069 Submitted by: hps Approved by: re
* Bump the version of all non-symbol-versioned shared libraries inkensmith2009-07-191-1/+1
| | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson)
* Sync the libusb 1.0 exported api to the latest GSoC code.thompsa2009-07-105-506/+510
| | | | | | | | | | - Fix possible uninitialised variables and null derefs - Support big transfers - Various bug fixes and style changes Submitted by: Sylvestre Gallon Sponsored by: Google Summer of Code 2009 Approved by: re (kib)
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-231-3/+1
| | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
* Add files missed in r194674.thompsa2009-06-235-0/+2861
| | | | | | | | | | | | | | | Add libusb 1.0 support which is compatible with the latest revision on Sourceforge. Libusb 1.0 is a portable usb api released December 2008 and supersedes the original libusb released 10 years ago, it supports isochronous endpoints and asynchronous I/O. Many applications have already started using the interfaces. This has been developed as part of Google Summer of Code this year by Sylvestre Gallon and has been cribbed early due to it being desirable in FreeBSD 8.0 Submitted by: Sylvestre Gallon Sponsored by: Google Summer of Code 2009 Reviewed by: Hans Petter Selasky
* Add libusb 1.0 support which is compatible with the latest revision onthompsa2009-06-235-799/+1227
| | | | | | | | | | | | | | Sourceforge. Libusb 1.0 is a portable usb api released December 2008 and supersedes the original libusb released 10 years ago, it supports isochronous endpoints and asynchronous I/O. Many applications have already started using the interfaces. This has been developed as part of Google Summer of Code this year by Sylvestre Gallon and has been cribbed early due to it being desirable in FreeBSD 8.0 Submitted by: Sylvestre Gallon Sponsored by: Google Summer of Code 2009 Reviewed by: Hans Petter Selasky
* Cleanup claim/release interface code, which is specific to libusb v0.1. Removethompsa2009-06-126-124/+12
| | | | | | claim and release interface support from libusb v2.0, because it is not useful. Submitted by: Hans Petter Selasky
* Add libusb20_tr_get_length to get the transfer length.thompsa2009-06-023-4/+39
| | | | Submitted by: Hans Petter Selasky
* s/usb2_/usb_/ on all C structs for the USB stack.thompsa2009-05-285-32/+32
|
* Fix libusb20_dev_get_device_desc and defunt xref.thompsa2009-05-211-4/+4
| | | | Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159934thompsa2009-04-051-145/+301
| | | | | | Update libusb function descriptions. Submitted by: Chuck Robey
* Add prototypes for libusb20_be_[gs]et_template.delphij2009-03-171-0/+2
|
* Update libusb.3 name and add mlinks for usb.3 and libusb20.3thompsa2009-03-102-4/+7
|
* Be compatible with LibUSB from sourceforge and close the handle after resetthompsa2009-03-101-1/+5
| | | | Submitted by: Hans Petter Selasky
* libusb20 is now installed as libusb, remove the version number from thethompsa2009-03-0912-0/+6135
| | | | directory name.
* Follow NetBSD and rename libusb to libusbhid.joe2002-03-278-1175/+0
| | | | MFC after: 7 days
* Remove __P() usage.obrien2002-03-211-15/+15
|
* Prefix structure members to protect them against clashes with eg.alfred2002-02-201-2/+2
| | | | | | | | | c++ keywords. This keeps us in sync with NetBSD because they actually committed my delta first. Ok'd by: lennard
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-1/+1
|
* Add __FBSDID()s to libusbdillon2001-09-304-11/+12
|
* mdoc(7) police: Fixed broken xrefs.ru2001-08-221-1/+1
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Fixed prototypes. About half of them were wrong (mainly due to constbde2001-02-061-10/+10
| | | | poisoning having not reached here).
* Added used include of <sys/cdefs.h>.bde2001-02-061-0/+4
| | | | Declare all the interfaces documented in usb.3 (2 were missing).
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-171-1/+1
|
* Remove fullstops from the end of .Xr lines in SEE ALSO section.ben2000-11-151-1/+1
|
* Sync with NetBSD:n_hibma2000-10-165-59/+132
| | | | | | | | | | K&R -> ANSI Bugfix: 'Keep the bit position even when the report descriptor says POP.' Add hid_use_report_desc, hid_parse_usage_page, hid_parse_usage_in_page. Changed iface for hid_report_size.
* Sync with NetBSD:n_hibma2000-08-262-5/+5
| | | | | Print unknown usages with 4 digits. Mask in page extraction.
* Remove DIAGASSERTn_hibma2000-07-073-25/+0
|
* The USB library from NetBSD by Lennart Augustsson <lennart@augustsson.net>.n_hibma2000-06-118-0/+1122
OpenPOWER on IntegriCloud