summaryrefslogtreecommitdiff
path: root/libusb/libusbi.h
Commit message (Collapse)AuthorAgeFilesLines
* Expose bus number and device addressDaniel Drake2008-05-021-0/+3
|
* Fix descriptor handling memory leaksDaniel Drake2008-04-291-0/+1
|
* Remove libusb_cancel_transfer_syncDaniel Drake2008-04-291-2/+1
| | | | | This wasn't a particularly nice API. Cancellation should be handled by the completion handler.
* libusb_device mutex protectionDaniel Drake2008-04-181-1/+5
|
* mutex protection for device and handle listsDaniel Drake2008-04-181-0/+2
|
* Linux: fire multiple URBs at once for split transfersDaniel Drake2008-04-111-0/+2
| | | | | | | | | | | This results in a significant performance increase for bulk transfers larger than 16kb, and fixes a bug where data would be spliced and mixed between two simultaneously submitted transfers to the same endpoint. It also allows isochronous transfers larger than 16kb to be submitted. This commit also improves cancellation - the library now understands what is going on.
* Isochronous endpoint I/ODaniel Drake2008-03-301-5/+32
| | | | | | | | | Due to variable-sized structures, this involved changing allocation mechanism. All transfers must now be allocated and freed through libusb. A synchronous function is missing, and I could do with writing a few more helper functions to simplify things.
* Support for changing altsettingDaniel Drake2008-03-231-0/+3
| | | | Will probably be suject to later consideration w.r.t. claiming of endpoints
* Fix get_device_list for realloc caseVasily Khoruzhick2008-03-151-1/+1
| | | | | | | get_device_list can modify pointer passed to it with realloc, but this case wasn't handled and caused crash on my machine. Fixed Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
* Beginnings of cross-platform abstractionDaniel Drake2008-03-131-8/+77
| | | | This also includes a libusb_get_pollfds API change
* Rename descriptor-getting functionsDaniel Drake2008-03-091-1/+1
| | | | Based on feedback from Tim Roberts
* Rename libusb_dev_handle to libusb_device_handleDaniel Drake2008-03-091-1/+1
|
* Separate transfer allocation and submissionDaniel Drake2008-03-091-15/+5
| | | | | | | | | | Leads to some hefty API changes. Now we're much more similar to the Linux kernel model. Problems with dealing with asynchronous control transfers are passed on to the user, basically you must allocate a buffer, start with the setup, and put the data after. This won't make much sense until documented (soon...)
* Rework URB API namingDaniel Drake2008-03-081-7/+7
| | | | | | | Now refer to everything as "transfers" as consistent with the USB spec libusb_transfer is now a kind of transfer handle. To reduce confusion with libusb_bulk_transfer and libusb_control_transfer, those have been renamed to libusb_{control,bulk}_transfer_request.
* Add fallback on /proc/bus/usbDaniel Drake2008-03-081-1/+0
| | | | | /dev/bus/usb is a relatively new thing probably not present on every system
* Persistent libusb_device storageDaniel Drake2008-03-081-0/+2
| | | | | | | | Devices are now assigned a session ID (currently busnum:devaddr) which is used to distinguish unique devices. Now multiple callers of libusb_get_device_list will get the same libusb_device structure instances.
* Rework device discovery APIDaniel Drake2008-03-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | libusb_find_devices and libusb_get_devices are no more libusb_get_device_list obtains a list of libusb_device structures for all known devices in the system. Each libusb_device now has a reference count, defaulting to 1 on instantiation. The reference count of 1 refers to the fact that it is present in the list in this scenario. Opening a device adds a pointer to the libusb_device structure in the handle, so that also adds a reference. Closing the device removes that reference. The function to free the device list can optionally unref all the devices inside. In future we will make the libusb_device instances all "global" so that if the app calls get_device_list twice it actually gets the same libusb_device structure references back. This way we can start to track disconnects, and we can investigate adding a unique "session ID" to each libusb_device, an identifier guaranteed to be unique to that device until reboot.
* Notifications for changes to the fd setDaniel Drake2008-02-261-0/+2
| | | | | Applications can now be notified when they should start and stop polling new file descriptors.
* Remove timers and signalfdDaniel Drake2008-01-301-4/+2
| | | | | | | Instead of timers, add a mechanism for informing the parent app when the next timeout is due to happen, so that it can call us at that time. As we no longer use signals, signalfd has also been removed.
* Remove more fpusb remnantsDaniel Drake2008-01-051-5/+5
|
* API renaming: remove fpi and usb_ stuffDaniel Drake2008-01-041-14/+14
| | | | | | | | fpi changed to usbi. We should not expose structures with prefix "usb_" in the public namespace as it is quite likely there will be some conflict somewhere. Instead, using "libusb_" should be safer.
* Rename to libusb-1.0Daniel Drake2008-01-041-0/+204
I've taken over the libusb project, and what was previously known as fpusb will eventually be released as libusb-1.0.