📄 changelog
字号:
commit 34b9eebe35d8167d43cffb6ad6175f6b2251b572Author: Daniel Drake <dsd@gentoo.org>Date: Sat Dec 13 20:06:49 2008 +0000 v1.0.0 release It's here!commit b1d636dde418dc8fe6a8f037dea0d800e57c6b94Author: Mikhail Gusarov <dottedmag@dottedmag.ent>Date: Wed Dec 10 15:24:05 2008 +0600 EOL-whitespace fixes Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.ent>commit 4a9ac382ba5149ae5b3d0962d6a840b5e0dc13aaAuthor: Daniel Drake <dsd@gentoo.org>Date: Tue Dec 9 21:43:37 2008 +0000 Linux: fix reading of active configuration Shannon Chuang pointed out that we only read 1 byte into an uninitialized integer, and then return the whole thing.commit 81a7310d92461ba7b1d98aeff7c4c007fab07120Author: Daniel Drake <dsd@gentoo.org>Date: Tue Dec 9 21:39:11 2008 +0000 Fix double free in descriptor parsing error path Pointed out by Shannon Chuang.commit 9b4b53453db56ba9c1d707a645bbe6c7a02a3c81Author: Daniel Drake <dsd@gentoo.org>Date: Fri Nov 21 13:28:32 2008 +0000 Improvements to multi-threaded I/O system Documentation brushed up, and I realised that another function is needed for tight event handling loops -- they must be able to check if an open/close operation is trying to interrupt it.commit 0e5b0fcb77a90b8bd95ad23669da472af31ef069Author: Daniel Drake <dsd@gentoo.org>Date: Fri Nov 21 11:00:47 2008 +0000 SourceForge website upload system changedcommit a133875e6e2f52eff53ac03f505d59cbdd33e178Author: Daniel Drake <dsd@gentoo.org>Date: Fri Nov 21 10:54:57 2008 +0000 v0.9.4 releasecommit c32aa662769b676ff3247778664fccc71fc427ecAuthor: Daniel Drake <dsd@gentoo.org>Date: Thu Nov 20 15:31:10 2008 +0000 Pause event handling while opening and closing devices Ludovic Rousseau found that crashes often occur if you close a device while another thread is doing event handling. Fix this by adding an internal control pipe, which the close routines use to interrupt the event handler and obtain the event handling lock, ensuring that no other thread is handling events while the device is closed. After the close completes, it signals all the event handlers to start up again using the usual mechanism. Also modified libusb_open() to do a similar thing, so that event handlers are interrupted in order to realise that a new poll fd has appeared.commit 1d7cf3d0fa8698eae25097cbda1870be90ff6f5eAuthor: Bastien Nocera <hadess@hadess.net>Date: Thu Oct 30 14:35:23 2008 +0000 Add libusb_attach_kernel_driver() Add support for re-attaching a driver to a device under Linux. [dsd: fixed handling of return value, and added LIBUSB_ERROR_BUSY case]commit 914a4e70657c86b5094770aa2d898c978b1cdf41Author: Daniel Drake <dsd@gentoo.org>Date: Sun Nov 2 21:45:54 2008 +0000 Linux: handle low-level transfer errors Handle more URB error status codes, thanks to Lou and Alan Stern.commit d25b566b3b8febafdda4211de724b4727dd4b7e0Author: Aurelien Jarno <aurelien@aurel32.net>Date: Thu Sep 4 13:50:49 2008 +0200 Support for out-of-tree building Contrary to libusb 0.1, libusb 1.0 does not support out-of-tree building for the documentation part. This patch fixes that by using a doxygen.cfg.in file, which contains @top_srcdir@ to refer to the location of the libusb source code.commit 8674c67ef78e1cf89db1fa584a4304f7c5ddcc5fAuthor: Daniel Drake <dsd@gentoo.org>Date: Sun Nov 2 15:00:39 2008 +0000 Document the logging style Suggested by Lou.commit 94936cbcfe3f02eb65c8b91e29896604316259d8Author: Daniel Drake <dsd@gentoo.org>Date: Wed Aug 27 22:44:24 2008 -0500 Async I/O documentation touchupscommit 2f8f1b1a900f5b9828e5e2ff93c2b26a44fd9de2Author: Daniel Drake <dsd@gentoo.org>Date: Wed Aug 27 21:23:10 2008 -0500 Doc: fix typo in events lock sectioncommit 046e681e4ac6b697e40458ee0f5baf3cd8763bb0Author: Daniel Drake <dsd@gentoo.org>Date: Sat Aug 23 01:00:21 2008 -0500 v0.9.3 releasecommit fec6eaa4eecdf7e0b8299157a5dabef94417f193Author: Daniel Drake <dsd@gentoo.org>Date: Sat Aug 23 00:57:44 2008 -0500 Reset internal transfer flags on submit This fixes a problem pointed out by Lou, where resubmitting a transfer that previously timed out never timed out again, as if the timeout had been set to 0.commit 81627bd38900ec9701ab69c141aa51a9abea1f60Author: Daniel Drake <dsd@gentoo.org>Date: Sun Aug 10 17:09:48 2008 -0500 Add libusb_get_configuration prototype Pointed out by Loucommit 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -