📄 changelog
字号:
commit 1631eaefcc7cdf7047c6b9225618a9aa1b3d87d1Author: Daniel Drake <dsd@gentoo.org>Date: Sat Jul 19 17:51:28 2008 -0500 v0.9.2 releasecommit 0d9c40d7f3eee15ada624b5caab2cfb912144fdcAuthor: Daniel Drake <dsd@gentoo.org>Date: Wed Jul 16 09:22:12 2008 -0500 Linux: fix sysfs directory handling The length of the directory name varies, e.g. when you have nested hubs. Use dynamic allocation to be able to deal with any length of name.commit 66c9847ad54b126ccafd4877292454ab57d0c115Author: David Engraf <dogge2k@gmx.de>Date: Wed Jul 16 09:16:38 2008 -0500 Linux: correct usage of MAX_PATH Thanks to clarification from Artem Egorkine, MAX_PATH already includes space for the trailing NULL.commit 6494f07a6d1b73ce786ae581c4ff691e39e61d19Author: Daniel Drake <dsd@gentoo.org>Date: Tue Jul 8 21:15:54 2008 -0500 Linux: fix bulk/iso transfer double-cancellation Reset counters to 0 so that it's possible to cancel a transfer twice without breaking things. Not sure that I want to support this properly, but this makes it work at least.commit 9140f5b414e37a3714cde9c6d6c87c963338a83aAuthor: Daniel Drake <dsd@gentoo.org>Date: Sat Jun 28 21:28:44 2008 -0500 v0.9.1 releasecommit 83a029062c1d2bfb584d7a6ee94915583d37464cAuthor: Daniel Drake <dsd@gentoo.org>Date: Sat Jun 28 21:24:49 2008 -0500 Add missing GET_CONTEXT()commit fbad9a5426f0369394c88987355a8fb06a741ca1Author: Daniel Drake <dsd@gentoo.org>Date: Sat Jun 28 21:18:41 2008 -0500 Linux: Compatibility with new sysfs descriptors file As of 2.6.26, the descriptors file now includes all descriptors, not just the active one.commit 819e65f880ca43526036e56c65c415042c91f58fAuthor: Daniel Drake <dsd@gentoo.org>Date: Thu Jun 26 22:47:05 2008 -0500 Allow user data pointer to be passed through pollfd notification APIcommit 1df713d622ab4f0b03aad72d903ac7beb8fb3b90Author: Daniel Drake <dsd@gentoo.org>Date: Tue Jun 24 23:01:51 2008 -0500 Introduce contexts to the API Suggested by David Zeuthen. This allows multiple libraries in the same process to independently use libusb without interfering.commit 9818151c60a85aea6af24cb0996a92c3726c9864Author: Daniel Drake <dsd@gentoo.org>Date: Tue Jun 24 21:31:13 2008 -0500 Revert "Temporary workaround for event handling serialization issue" This reverts commit 2d3a1111caff40ebb87983c861ff548cdc9e5946. This was based on the assumption that dying threads would automatically release mutexes, which is not the case.commit d5f82893fab3f1c13b1af4ba17aac72479bad7d5Author: Daniel Drake <dsd@gentoo.org>Date: Fri Jun 20 23:04:53 2008 -0500 Overflow handlingcommit 546dee211eefbdd280fd1fc9dee84a9b52105078Author: Artem Egorkine <arteme@gmail.com>Date: Tue Jun 17 18:27:38 2008 -0500 a fix for SIGSEGV in handle_bulk_completion() We cannot dereference tpriv after calling usbi_handle_transfer_cancellation() because that function may invoke the user-supplied callback which may free the transfer.commit 947ba8056456a5215724fb502e3e09d50016f699Author: Daniel Drake <dsd@gentoo.org>Date: Mon Jun 16 22:50:50 2008 -0500 Refine configuration selection again At Alan Stern's suggestion, just offer the bare "set configuration" and "get configuration" functionality, and let applications worry about the specific race conditions and unusual situations.commit e7a7a49d0331ee0e14145f6e7ec39763b36314acAuthor: Daniel Drake <dsd@gentoo.org>Date: Sun Jun 15 15:29:38 2008 -0500 docs update Add a THANKS file, make copyright notices easily accessible, update TODOcommit 217534e4b396081e038ee5f94c813d1668963673Author: Daniel Drake <dsd@gentoo.org>Date: Sun Jun 15 15:23:29 2008 -0500 round up poll timeout Pointed out by Richard Röjfors, otherwise we end up busy-looping with a poll() timeout of 0.commit 5ad79b324bc5e11a75a585398a1e81c26f05e758Author: Felipe Balbi <me@felipebalbi.com>Date: Sun Jun 8 12:34:48 2008 +0300 fix doc about libusb_open() libusb_open() returns int instead of libusb_device_handle. Signed-off-by: Felipe Balbi <me@felipebalbi.com> [dsd: small correction]commit 2d3a1111caff40ebb87983c861ff548cdc9e5946Author: Daniel Drake <dsd@gentoo.org>Date: Thu May 29 17:26:26 2008 +0100 Temporary workaround for event handling serialization issue Ludovic Rousseau pointed out that libusb_unlock_events() is not called when a thread gets terminated with a signal, meaning that event waiters will not be woken up in this case. Add a temporary hack to libusb_event_handler_active() so that at least the other threads will realise on the next iteration of their event handling loop. The real fix will likely involve reworking most of this.commit 514bb8790cfe8b93ccfff82bc17081b1030acce0Author: Daniel Drake <dsd@gentoo.org>Date: Thu May 29 12:35:01 2008 +0100 Refine libusb_set_configuration() semantics Applications will generally want to set a configuration before claiming interfaces. The problem is that the interface may already be set, and someone else may have claimed an interface (meaning that all calls to set_configuration will fail, even if it's for the same configuration). There are now 2 options: 1. Use the new libusb_get_configuration() to determine active configuration before calling libusb_set_configuration() 2. Or just call libusb_set_configuration() as usual, which will do nothing if that configuration is already active.commit d1292f8e7300051239a7ed2769d221dc7a6f9fcaAuthor: Daniel Drake <dsd@gentoo.org>Date: Sun May 25 23:42:42 2008 +0100 v0.9.0 release First libusb-1.0 beta releasecommit 4cd249388e4ed2ca03f1263984ab67df5030bb65Author: Daniel Drake <dsd@gentoo.org>Date: Sun May 25 22:59:09 2008 +0100 Take lock before raising event waiters condition This avoids a race between the user checking for active event handler and then blocking on the condition variablecommit 7c525480ab3c4db9205bfe30bb0d2bef9096c444Author: Daniel Drake <dsd@gentoo.org>Date: Fri May 23 15:57:07 2008 +0100 Implement serialization of event handlers Now offers a mechanism to wait for events while another thread is doing the event handling. Complicates things for MT async apps, but then again it's a bit of a tricky combination to start with.commit ff0660a415ecfd0879600eaad1c5899b6d93a30aAuthor: Daniel Drake <dsd@gentoo.org>Date: Sat May 24 21:28:31 2008 +0100 allow LIBUSB_DEBUG env var to control message verbosity at runtime Based on ideas from Ludovic Rousseaucommit 4d788967e3f8d75eaf3a1ac1ee8e2e8bed0601c1Author: Daniel Drake <dsd@gentoo.org>Date: Fri May 23 15:58:11 2008 +0100 don't print messages by default Add libusb_set_debug() API to set message verbosity. Ludovic Rousseau pointed out that applications may close stdout/stderr descriptors, which might then be reused.commit bef33bb9eba0da04ee7488d9cd5e6ab12bc61c0cAuthor: Daniel Drake <dsd@gentoo.org>Date: Mon May 19 15:43:27 2008 +0100 Fix memory leak in libusb_control_transfer Pointed out by David Engraf: we weren't freeing the transfer buffercommit a345bacb6f07ebb2122402041a9e8092d4a20a4dAuthor: David Engraf <david.engraf@netcom.eu>Date: Mon May 19 15:16:32 2008 +0100 Linux: fix handling of ioctl failure The return value of some ioctl commands in linux_usbfs.c are not handeled correct. The ioctl function returns != 0 and errno is set with the error code.commit e44396a458ecea9e5edd9a7577e617571c76860dAuthor: David Engraf <david.engraf@netcom.eu>Date: Mon May 19 15:13:38 2008 +0100 critical memory leak in handle_events This patch closes a critical memory leak in handle_events. The fds variable is malloced but never freed. When I'm calling handle_events with a timeout of 0, my system runs out of memory after a few seconds.commit eb25630f52bc9848b444e439632c899977d887b0Author: Daniel Drake <dsd@gentoo.org>Date: Fri May 16 23:50:20 2008 +0100 More informative libusb_open() return code Hopefully one of the last API tweaks...commit 2b2e9c40b195261b09ac52ebdb93eef25c79de90Author: Daniel Drake <dsd@gentoo.org>Date: Fri May 16 22:37:56 2008 +0100 Fix endianness with descriptor handling Alan Stern pointed out that usbfs gives host-endian data, but sysfs gives bus-endian.commit 1298c51f516a7bf04ca9add1b7db14417cdc66f3Author: Daniel Drake <dsd@gentoo.org>Date: Mon May 12 18:46:37 2008 +0100 Backend documentation for porting efforts Hopefully comprehensive enough for people to get started.commit ade26afc42c34ceb1c45afcadd2ea5e8240eaca4Author: Daniel Drake <dsd@gentoo.org>Date: Mon May 12 15:43:30 2008 +0100 Linux: fix caching of guessed configuration Reported and tested by Xiaofan Chencommit e25d590a9198995b4f0b6afeb41ecae318715e7eAuthor: Rob Walker <rob@tenfoot.org.uk>Date: Sun May 11 21:14:18 2008 +0100 Linux: fix bulk transfer early completion We were forgetting about the remaining urbs when a non-final urb completed early. [dsd: some touchups and a warning message for a corner case that we don't handle]commit fec7c84163e25b8f811632828334d75da82bcb16Author: Daniel Drake <dsd@gentoo.org>Date: Sun May 11 20:31:58 2008 +0100 Handle hot-unplugging This involved moving from select() to poll() because there is no way to distinguish usbfs's POLLERR condition with select().commit aeb905fa5d78cdbba80a680aa7a2bb7338f27f65Author: Daniel Drake <dsd@gentoo.org>Date: Sun May 11 16:04:35 2008 +0100 Documentation workcommit ba5d9a45c06311204f51faef41d1ee215bb5b823Author: Daniel Drake <dsd@gentoo.org>Date: Sun May 11 15:36:24 2008 +0100 Endianness of control setup packets Document behaviour where host-endian and bus-endian (little) should be used respectively. Also remove packed attribute from libusb_control_setup as all fields are naturally aligned.commit 7bedc3b2683f35ee1dd39a2ebe0ec05be0019f38Author: Daniel Drake <dsd@gentoo.org>Date: Sun May 11 15:11:59 2008 +0100 Document that releasing interface causes SET_INTERFACE control requestcommit f2ede9876cd4f5cfa7751b975670fa449187fe3dAuthor: Daniel Drake <dsd@gentoo.org>Date: Sat May 10 21:45:42 2008 +0100 Support unconfigured devicescommit 8ebb4ccdfaf5f095a1c38787d909d280ea64405cAuthor: Daniel Drake <dsd@gentoo.org>Date: Sat May 10 20:56:44 2008 +0100 Linux: fix caching of active configuration for non-sysfscommit c3844f7aeb2176636ce6e6ef697659fdb0b30048Author: Daniel Drake <dsd@gentoo.org>Date: Sat May 10 14:42:43 2008 +0100 Fetch configurations by index (not value) Otherwise there is no way to know which values to look for.commit d77052c0d630e33737c38d601fd633155f6b2229Author: Daniel Drake <dsd@gentoo.org>Date: Sat May 10 00:12:53 2008 +0100 Linux: comprehensive sysfs vs usbfs access Be more flexible when certain parts of sysfs are not available.commit 74bc842bac1a32a26323da6c3e8af2f66e1b5cfaAuthor: Daniel Drake <dsd@gentoo.org>Date: Fri May 9 19:38:13 2008 +0100 Linux: no need to store usbfs node path This can be computed from bus number and device addresscommit fe4adcc99e30115204ab832ad3e0170c9aca7629Author: Daniel Drake <dsd@gentoo.org>Date: Fri May 9 14:34:31 2008 +0100 Rework configuration handling libusb no longer caches descriptors in libusb_device but backends are intended to be able to provide copies from memory. In the common linux case we can use sysfs.commit 5741bfe01a2481b8c3830c80edc3637bf62a7e16Author: Daniel Drake <dsd@gentoo.org>Date: Fri May 9 14:36:14 2008 +0100
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -