📄 changelog
字号:
Will probably be suject to later consideration w.r.t. claiming of endpointscommit 0499e9f418607b5786ac0c3e97bc46737a609ca3Author: Daniel Drake <dsd@gentoo.org>Date: Thu Mar 20 21:10:01 2008 +0000 it's called bmRequestTypecommit 88884ae4bbe721dac117d5190303cb67852fa5d3Author: Daniel Drake <dsd@gentoo.org>Date: Thu Mar 20 21:07:00 2008 +0000 Save transfer flags before invoking callback The callback may free the transfer, in which case we can't read the flags after it has returned.commit ead09cde6895df0034a685516987ce253575e9a7Author: Daniel Drake <dsd@gentoo.org>Date: Sat Mar 15 16:35:12 2008 +0000 API documentation Hopefully mostly complete. Some constants were renamed and move into enums.commit 285724cc14ea5f993e2c4c92fe0aaf6c335bc139Author: Vasily Khoruzhick <anarsoul@gmail.com>Date: Sat Mar 15 13:50:53 2008 +0200 Fix get_device_list for realloc case 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>commit c0c9432d38b22784070dce3a7874c62c31786a27Author: Daniel Drake <dsd@gentoo.org>Date: Thu Mar 13 12:36:56 2008 +0000 Beginnings of cross-platform abstraction This also includes a libusb_get_pollfds API changecommit de4c5341d168697baa4c0901c406deb47e78aae7Author: Daniel Drake <dsd@gentoo.org>Date: Mon Mar 10 18:38:15 2008 +0000 Add transfer flagscommit aae05f688dc26a013166ab9436fd25018b49d76aAuthor: Daniel Drake <dsd@gentoo.org>Date: Mon Mar 10 11:32:15 2008 +0000 Simplify libusb_fill_control_transfer() Transfer length can be inferred from the setup packet.commit 7c5ea95297c2f3f6afc42f60c1bf1bef777bb1fbAuthor: Daniel Drake <dsd@gentoo.org>Date: Mon Mar 10 11:29:24 2008 +0000 get_device fixup Rename API away from "devh" and fix implementation to match headercommit 9e89d1aa82cbe7e21672ee3e2e545238fffc5318Author: Daniel Drake <dsd@gentoo.org>Date: Sun Mar 9 16:27:06 2008 +0000 Rename descriptor-getting functions Based on feedback from Tim Robertscommit 283ae96c3ccbcee1c3950fce18ae47093ae8200eAuthor: Daniel Drake <dsd@gentoo.org>Date: Sun Mar 9 16:15:02 2008 +0000 Simplify cancellation API No need to provide the device here.commit ebad1c79688ba603ad017ed0fe2f3c0dc8edd1adAuthor: Daniel Drake <dsd@gentoo.org>Date: Sun Mar 9 16:12:08 2008 +0000 Rename libusb_dev_handle to libusb_device_handlecommit 1ac0a7d88f282b6f293c456fac8edb143cbaca3dAuthor: Daniel Drake <dsd@gentoo.org>Date: Sun Mar 9 01:01:57 2008 +0000 Move synchronous I/O implementation to its own filecommit 66348c90ea4570bf999ac301089e006d0cce1926Author: Daniel Drake <dsd@gentoo.org>Date: Sun Mar 9 00:58:09 2008 +0000 Separate transfer allocation and submission 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...)commit d21ebe47ce578c93cd8969be1c933d503e32e5d4Author: Daniel Drake <dsd@gentoo.org>Date: Sat Mar 8 12:48:35 2008 +0000 Rework URB API naming 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.commit fd6fb3cc093ad47271353a0e468d16547f991382Author: Daniel Drake <dsd@gentoo.org>Date: Sat Mar 8 11:53:33 2008 +0000 Add fallback on /proc/bus/usb /dev/bus/usb is a relatively new thing probably not present on every systemcommit f3fdf447916289cd92b7190377681894e8ab611aAuthor: Daniel Drake <dsd@gentoo.org>Date: Sat Mar 8 00:10:16 2008 +0000 Persistent libusb_device storage 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.commit 23f8fb8bafeeda93ce234cb40eb7219d2e36c19cAuthor: Daniel Drake <dsd@gentoo.org>Date: Thu Mar 6 23:43:57 2008 +0000 Add convenience function to find and open a device by USB VID+PID Lots of libusb apps I write are simple test apps not intended to be real apps. Having a function available to quickly locate my device will be handy in such situations.commit 9cfdb494fccac53a4277da7c8b6d15f1a72a4959Author: Daniel Drake <dsd@gentoo.org>Date: Thu Mar 6 23:25:20 2008 +0000 Rework device discovery API 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.commit 77cea822788e024c848c7f554915f771a2dc1e0fAuthor: Daniel Drake <dsd@gentoo.org>Date: Thu Mar 6 17:05:04 2008 +0000 Remove ctrl debug code This was unintentionally committedcommit b873521a6f575628d535f89278bb67888004d0caAuthor: Daniel Drake <dsd@gentoo.org>Date: Tue Feb 26 22:11:34 2008 +0000 Notifications for changes to the fd set Applications can now be notified when they should start and stop polling new file descriptors.commit ca66e16a370c828d08a5bc3f9f203db145c81a4cAuthor: Daniel Drake <dsd@gentoo.org>Date: Fri Feb 1 12:20:20 2008 +0000 Fix header installation pathcommit e583100a4086c411093eef5c450880b965df6b1bAuthor: Daniel Drake <dsd@gentoo.org>Date: Wed Jan 30 13:24:54 2008 +0000 TODO updatecommit 637a8d7ff8a11a23588925d9d3003a609bda8075Author: Daniel Drake <dsd@gentoo.org>Date: Wed Jan 30 13:19:10 2008 +0000 Remove timers and signalfd 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.commit 8c56abe2e13ed4dd8c15737c21be7b6b1e5cf2acAuthor: Daniel Drake <dsd@gentoo.org>Date: Sat Jan 26 18:16:56 2008 +0000 Poll usbfs descriptors directly We don't need to use signalfd for this functionality because we can poll the file descriptors for write events.commit e3ce855acec33d37dd833bca5dad5e8c3773003aAuthor: Daniel Drake <dsd@gentoo.org>Date: Sat Jan 26 17:26:40 2008 +0000 Fix dpfp example compilationcommit 1d41a5cda2fefe826877ee4445199af30aa188b7Author: Daniel Drake <dsd@gentoo.org>Date: Sat Jan 26 17:22:53 2008 +0000 C++ header safety Pointed out by JFcommit 37b7f9a112eb1441d352467f661205b8872d0553Author: Daniel Drake <dsd@gentoo.org>Date: Sat Jan 26 14:03:43 2008 +0000 Only use -fgnu89-inline when supported J F pointed out that this option only works on gcc 4.3 and newer.commit e3a09ca0b9cb6f46d54a0130f678c6097240a2bdAuthor: Daniel Drake <dsd@gentoo.org>Date: Sat Jan 5 21:59:40 2008 +0000 Remove more fpusb remnantscommit dcd5e0075fa84601d997d29bb60bc8370b97a375Author: Daniel Drake <dsd@gentoo.org>Date: Fri Jan 4 01:19:07 2008 +0000 TODO update Start listing the things I want to discuss/reconsider before 1.0 API is final.commit de53d972ed9c1f21f86ffd585560520e986f212cAuthor: Daniel Drake <dsd@gentoo.org>Date: Fri Jan 4 01:17:06 2008 +0000 Rename some _devh_ functions Decided against naming functions in this style based on advice from Tim Roberts. Still not really sure about devh naming in general.commit 132d84bf8ae34bd0892b3d8207a53d87cc0a9cbaAuthor: Daniel Drake <dsd@gentoo.org>Date: Fri Jan 4 01:13:25 2008 +0000 Use "transfer" instead of "msg" Based on a discussion with Tim Roberts.commit ea6af58a8643137eb01eeb7d2f65404e390feb1bAuthor: Daniel Drake <dsd@gentoo.org>Date: Fri Jan 4 00:57:00 2008 +0000 Plural of bus is busses SF #1633043commit dbb3fd871e3972b4e670f3161e7cd2f58f357600Author: Daniel Drake <dsd@gentoo.org>Date: Fri Jan 4 00:54:57 2008 +0000 API renaming: remove fpi and usb_ stuff 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.commit e9364d72151ae1de9cce4175f330fe1529f02511Author: Daniel Drake <dsd@gentoo.org>Date: Fri Jan 4 00:40:49 2008 +0000 Rename to libusb-1.0 I've taken over the libusb project, and what was previously known as fpusb will eventually be released as libusb-1.0.commit f4ed0b6a3e0a20555fdfc9e9b8be7e8a2c8ae192Author: Daniel Drake <dsd@gentoo.org>Date: Sun Dec 30 22:09:50 2007 +0000 Compiler flags update Also fix some warningscommit d3d671efe27491baf1d2ceadbfeeb4e7428d6f9aAuthor: Daniel Drake <dsd@gentoo.org>Date: Sun Dec 30 22:05:17 2007 +0000 Fix signalfd structure size on x86 ptr is a 64-bit valuecommit dfac6756faad76071a92945e3e3a16b8a841a7eaAuthor: Daniel Drake <dsd@gentoo.org>Date: Wed Dec 12 23:32:54 2007 +0000 Don't pass ctrl_msg/bulk_msg structures through async paths These are easiest to construct on the stack, but in the async case it is likely that the submitting function returns (hence stack is destroyed) before URB completion.commit a8d2881eb7c273892acf2ff6e1f3f552631d1d11Author: Daniel Drake <dsd@gentoo.org>Date: Mon Dec 3 23:29:22 2007 +0000 Add functionality to access device descriptorscommit b5a7a411087b37a6bf56b4688a9e3290daaed153Author: Daniel Drake <dsd@gentoo.org>Date: Mon Dec 3 22:27:21 2007 +0000 Rename fpusb_device_handle functions to devh Prevents confusion with functions that work on fpusb_dev structures.commit eacf4505a473df0f521d1b69d5b45448f0709e2dAuthor: Daniel Drake <dsd@gentoo.org>Date: Sun Dec 2 23:16:57 2007 +0000 Add API to access poll fd Almost forgot... :)commit 852bba4754ec57679c823f33e8feba6e4a564cbeAuthor: Daniel Drake <dsd@gentoo.org>Date: Wed Nov 28 13:48:45 2007 +0000 Initial commit Basic library structure which supports enumerating detected USB devices
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -