commit | 24deb4904246953fc8f231d8371fac82bf856e5d | [log] [tgz] |
---|---|---|
author | Chris Dickens <christopher.a.dickens@gmail.com> | Tue Mar 31 19:57:28 2020 -0700 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Tue Mar 31 19:57:28 2020 -0700 |
tree | 3c36e9d0c8c9e97012a22e1a1909240f93ce16f4 | |
parent | 3f6e8baa2baaa617a83c810c1ae1b49e4f4a6667 [diff] |
Windows: Improve the get_interface_details_filter() function The sole caller of this function only cares about the device interface path, so change the calling convention to be like that of the get_interface_details() function. This also adds more precise error reporting. Since this function is specific to the libusb0 filter driver, do not require the caller to provide the GUID for the libusb0 filter driver. Remove the use of strtok() on the result of this function. The strtok() function is not reentrant and is less-than-optimal for locating the start of the GUID component in the device interface path. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)