summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add g_usb_device_get_string_descriptor_bytes()wip/hughsie/g_usb_device_get_string_descriptor_bytesRichard Hughes2021-01-203-0/+62
| | | | This is requried for the GD32VF103 device.
* trivial: Include string.h for memcpy()Richard Hughes2020-12-141-0/+2
|
* Merge pull request #42 from benzea/benzea/fix-cancellationIgnacio Casal Quinteiro2020-11-031-27/+42
|\ | | | | device: Fix cancellation if cancellable is already cancelled
| * device: Fix cancellation if cancellable is already cancelledBenjamin Berg2020-10-011-27/+42
|/ | | | | | | | | | | libusb can only handle cancellation if the transfer is already in-flight. However, g_cancellable_connect will immediately call the callback and then libusb_cancel_transfer when the cancellable is already cancelled at the time the transfer is submitted. Move the cancellation registration to after transfer submission to avoid ordering issues. Also avoid even submitting the transfer if the cancellable is already cancelled to begin with.
* trivial: Fix up typos spotted by codespellRichard Hughes2020-09-243-8/+8
|
* trivial: Check the return code of g_option_context_parse()Richard Hughes2020-09-011-1/+6
|
* Properly set dylib versions on darwinCaleb Xu2020-08-032-3/+4
|
* trivial: post release version bumpRichard Hughes2020-07-302-4/+4
|
* Release version 0.3.50.3.5Richard Hughes2020-07-301-0/+14
|
* Add a way to get iConfigurationBenson Leung2020-07-293-0/+37
| | | | | Adds a getter for a gusb_device to get the string index for the active configuration's description.
* Allow building GtkDoc when building as a subprojectRichard Hughes2020-06-242-2/+5
| | | | Fixes https://github.com/fwupd/fwupd/issues/2178
* trivial: Sync map generator changes from libxmlbRichard Hughes2020-04-031-2/+2
|
* trivial: post release version bumpRichard Hughes2020-04-032-5/+5
|
* generate-version-script: Don't hard-code the path of python3Ting-Wei Lan2020-03-242-1/+4
| | | | | | Python can be installed in different directories on different operating systems, so we can't hard-code the path of it. Instead, use meson to find it to avoid 'no such file or directory' error on the bad path.
* build: version-script should be supported everywhere except on darwin systemLaurent Bigonville2020-03-181-1/+1
| | | | Fixes: #34
* generate-version-script: Don't skip methods on plain structsSimon McVittie2020-03-042-3/+5
| | | | | | | This resulted in losing g_usb_source_set_callback@LIBGUSB_0.1.0 from the ABI in version 0.3.4. Signed-off-by: Simon McVittie <smcv@debian.org>
* CI: Install diffutilsSimon McVittie2020-03-041-0/+1
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* Release version 0.3.40.3.4Richard Hughes2020-02-201-0/+16
|
* Validate the exported symbol list during checkRichard Hughes2020-02-203-12/+210
| | | | | This is the same script used by fwupd, and would have caught both recent issues with the exported symbol versions being incorrect.
* trivial: Add some missing 'Since: ' valuesRichard Hughes2020-02-202-0/+14
|
* trivial: Fix the gtk-doc markup in GUsbEndpointRichard Hughes2020-02-201-5/+5
|
* Include the USB bus in the generated platform_idRichard Hughes2020-02-141-11/+6
| | | | | | | | | | | The existing logic here was unsound; the recursion only checked the string for length 0 after it had gone up the tree to the parent, and so would never match. This meant if you had identical devices with the same port hierarchy on different USB busses they had the *same* physical ID. This really upsets projects like fwupd which use the physical ID to stay the same on device replug (which worked fine), but also dedupe devices with the same physical ID, which is what broke here.
* trivial: Add exported symbol g_usb_version_string in the right placeRichard Hughes2020-02-111-0/+1
| | | | Fixes the last point in https://github.com/hughsie/libgusb/issues/27
* trivial: add missing symbols to ver fileEmmanuel Pacaud2020-02-111-0/+4
|
* trivial: typo fixEmmanuel Pacaud2020-02-111-1/+1
|
* trivial: post release version bumpRichard Hughes2020-01-302-5/+5
|
* Release version 0.3.30.3.3Richard Hughes2020-01-301-0/+12
|
* trivial: Define a G_USB_DEVICE_CLAIM_INTERFACE_NONE rather than using '0'Richard Hughes2020-01-211-0/+1
|
* trivial: Use spaces and tabs consistentlyRichard Hughes2020-01-217-263/+263
|
* Wrap the upstream libusb_strerror()Richard Hughes2020-01-212-39/+2
| | | | We depend on a libusb to always define this.
* trivial: Remove useless gtk-doc comment sectionsRichard Hughes2020-01-212-45/+0
|
* Use '#pragma once' to reduce boilerplateRichard Hughes2020-01-2115-62/+15
|
* trivial: Use SPDX-License-Identifier tagsRichard Hughes2020-01-2125-360/+26
|
* trivial: Fix the copyright statements for GUsbEndpointRichard Hughes2020-01-215-3/+5
|
* trivial: Fix include dir for exported headerRichard Hughes2020-01-211-1/+1
|
* Add a thin glib wrapper around libusb_endpoint_descriptorEmmanuel Pacaud2020-01-208-0/+368
|
* Fix high number of wakeups when checking the GUsbContextRichard Hughes2020-01-201-2/+2
| | | | | | | | | | | In 985b9e4ec39ac521e7398a8e3017c96f2c4d75ec I mistakenly thought this was the timeout for the added/removed context checking, which was Windows-specific. It actually was the main context event thread, which is running all the time. Switch the poll timeout to be 2s, (still down from the default 60s!) which is a better compromise between battery life and context shutdown performance. Fixes https://github.com/hughsie/libgusb/issues/24
* trivial: post release version bumpRichard Hughes2020-01-062-5/+5
|
* Release version 0.3.20.3.2Richard Hughes2020-01-062-3/+13
|
* Fix compilation on macOSRichard Hughes2019-12-041-1/+4
| | | | Fixes https://github.com/hughsie/libgusb/issues/11
* trivial: Create static and shared libraries where requiredRichard Hughes2019-12-031-1/+1
|
* Use a 1ms timeout in the Windows event threadRichard Hughes2019-12-031-1/+5
| | | | | This avoids blocking for multiple seconds when trying to destroy the context, which could happen quite a few times in the self tests.
* Do not use deprecated libusb APIRichard Hughes2019-12-032-0/+11
|
* Use has_link_argument() to detect linker flagsRichard Hughes2019-12-031-2/+2
|
* trivial: Move the CI to Fedora 31Richard Hughes2019-12-032-5/+5
|
* trivial: Allow compiling as a subprojectRichard Hughes2019-11-232-1/+15
|
* trivial: Don't force specific linker flash when cross buildingRichard Hughes2019-11-231-1/+4
|
* trivial: post release version bumpRichard Hughes2019-11-162-4/+4
|
* Release version 0.3.10.3.1Richard Hughes2019-11-162-1/+14
|
* Add g_usb_device_get_spec()Richard Hughes2019-11-153-0/+25
| | | | Sometimes we do care about the USB version number of the device.