Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add g_usb_device_get_string_descriptor_bytes_fullmaster | Ricardo Cañuelo | 2021-09-30 | 3 | -15/+57 |
| | | | | | | | Some devices won't answer to a request with a 128-byte data buffer, this allows the user to specify the size of the request data buffer. g_usb_device_get_string_descriptor_bytes still uses the default buffer size (128 bytes). | ||||
* | trivial: post release version bump | Richard Hughes | 2021-05-24 | 2 | -5/+5 |
| | |||||
* | Release version 0.3.70.3.7 | Richard Hughes | 2021-05-24 | 2 | -1/+15 |
| | |||||
* | trivial: Fix a warning when used in a subproject | Richard Hughes | 2021-05-22 | 1 | -2/+1 |
| | | | | | | | Fixes: DEPRECATION: Library was passed to the libraries keyword argument of a previous call to generate() method instead of first positional argument. | ||||
* | Add a FreeBSD CI target | Richard Hughes | 2021-05-21 | 1 | -1/+18 |
| | |||||
* | trivial: Do not hardcode the libusb.h include directory | Richard Hughes | 2021-05-21 | 1 | -5/+5 |
| | |||||
* | Require *any* python3 to fix FreeBSD build | Richard Hughes | 2021-05-21 | 1 | -1/+1 |
| | |||||
* | trivial: Make build_and_test.sh less of a footgun | Richard Hughes | 2021-05-21 | 1 | -1/+0 |
| | |||||
* | Do not depend on libusb_get_port_number() to fix DragonFlyBSD compile | Richard Hughes | 2021-05-21 | 2 | -1/+13 |
| | |||||
* | Do not depend on libusb_get_parent() to fix FreeBSD compile | Richard Hughes | 2021-05-21 | 2 | -0/+12 |
| | |||||
* | Lower the libusb dep to fix compile on FreeBSD | Richard Hughes | 2021-05-21 | 2 | -6/+27 |
| | | | | | | | | | | | FreeBSD is not a supported platform of libusb. The native USB access library on FreeBSD is libusb20, which provides both the non-portable FreeBSD-specific API and wrapper functions that are mostly compatible eith libusb 1.0 API. It is an integral part of FreeBSD and the version included in the oldest supported FreeBSD release reports 1.0.9 in its libusb-1.0.pc. Based on a patch by Ting-Wei Lan <lantw@src.gnome.org>, many thanks. | ||||
* | Do not run the tests on FreeBSD | Richard Hughes | 2021-05-21 | 1 | -0/+10 |
| | | | | | | Root hubs on FreeBSD have vid and pid set to zero. Based on a patch by Ting-Wei Lan <lantw@src.gnome.org> | ||||
* | trivial: Move Debian CI to buster | Richard Hughes | 2021-05-21 | 2 | -3/+3 |
| | |||||
* | Only run CI build on master | Richard Hughes | 2021-05-21 | 1 | -1/+5 |
| | |||||
* | Move the CI to GitHub actions | Richard Hughes | 2021-05-21 | 3 | -15/+20 |
| | |||||
* | device: Reference the libusb device when set | Marco Trevisan (Treviño) | 2021-04-13 | 1 | -3/+13 |
| | | | | | | | | | We used to reference a device during the initable init vfunc, however it's better to do it when the device is actually set as an object property. In this way, the device is always unreffed when the object is disposed, without having to care about the ordering. | ||||
* | device: Do not double-reference USB devices | Marco Trevisan (Treviño) | 2021-04-13 | 1 | -2/+0 |
| | | | | | | | | | | | Currently gusb-device adds two references to an internal libusb device, causing a memory leak on destruction. In fact, we add a reference when the device is constructed and when the device is inited. To avoid this and ensure that libusb will cleanup all the devices on context destruction, only reference on device initialization. | ||||
* | trivial: Fix a tiny memork leak when running the gusb test tool | Richard Hughes | 2021-04-12 | 1 | -0/+1 |
| | |||||
* | trivial: post release version bump | Richard Hughes | 2021-03-12 | 2 | -5/+5 |
| | |||||
* | Release version 0.3.60.3.6 | Richard Hughes | 2021-03-12 | 1 | -0/+11 |
| | |||||
* | Add g_usb_device_get_string_descriptor_bytes() | Richard Hughes | 2021-01-27 | 3 | -0/+62 |
| | | | | This is requried for the GD32VF103 device. | ||||
* | trivial: Include string.h for memcpy() | Richard Hughes | 2020-12-14 | 1 | -0/+2 |
| | |||||
* | Merge pull request #42 from benzea/benzea/fix-cancellation | Ignacio Casal Quinteiro | 2020-11-03 | 1 | -27/+42 |
|\ | | | | | device: Fix cancellation if cancellable is already cancelled | ||||
| * | device: Fix cancellation if cancellable is already cancelled | Benjamin Berg | 2020-10-01 | 1 | -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 codespell | Richard Hughes | 2020-09-24 | 3 | -8/+8 |
| | |||||
* | trivial: Check the return code of g_option_context_parse() | Richard Hughes | 2020-09-01 | 1 | -1/+6 |
| | |||||
* | Properly set dylib versions on darwin | Caleb Xu | 2020-08-03 | 2 | -3/+4 |
| | |||||
* | trivial: post release version bump | Richard Hughes | 2020-07-30 | 2 | -4/+4 |
| | |||||
* | Release version 0.3.50.3.5 | Richard Hughes | 2020-07-30 | 1 | -0/+14 |
| | |||||
* | Add a way to get iConfiguration | Benson Leung | 2020-07-29 | 3 | -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 subproject | Richard Hughes | 2020-06-24 | 2 | -2/+5 |
| | | | | Fixes https://github.com/fwupd/fwupd/issues/2178 | ||||
* | trivial: Sync map generator changes from libxmlb | Richard Hughes | 2020-04-03 | 1 | -2/+2 |
| | |||||
* | trivial: post release version bump | Richard Hughes | 2020-04-03 | 2 | -5/+5 |
| | |||||
* | generate-version-script: Don't hard-code the path of python3 | Ting-Wei Lan | 2020-03-24 | 2 | -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 system | Laurent Bigonville | 2020-03-18 | 1 | -1/+1 |
| | | | | Fixes: #34 | ||||
* | generate-version-script: Don't skip methods on plain structs | Simon McVittie | 2020-03-04 | 2 | -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 diffutils | Simon McVittie | 2020-03-04 | 1 | -0/+1 |
| | | | | Signed-off-by: Simon McVittie <smcv@debian.org> | ||||
* | Release version 0.3.40.3.4 | Richard Hughes | 2020-02-20 | 1 | -0/+16 |
| | |||||
* | Validate the exported symbol list during check | Richard Hughes | 2020-02-20 | 3 | -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: ' values | Richard Hughes | 2020-02-20 | 2 | -0/+14 |
| | |||||
* | trivial: Fix the gtk-doc markup in GUsbEndpoint | Richard Hughes | 2020-02-20 | 1 | -5/+5 |
| | |||||
* | Include the USB bus in the generated platform_id | Richard Hughes | 2020-02-14 | 1 | -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 place | Richard Hughes | 2020-02-11 | 1 | -0/+1 |
| | | | | Fixes the last point in https://github.com/hughsie/libgusb/issues/27 | ||||
* | trivial: add missing symbols to ver file | Emmanuel Pacaud | 2020-02-11 | 1 | -0/+4 |
| | |||||
* | trivial: typo fix | Emmanuel Pacaud | 2020-02-11 | 1 | -1/+1 |
| | |||||
* | trivial: post release version bump | Richard Hughes | 2020-01-30 | 2 | -5/+5 |
| | |||||
* | Release version 0.3.30.3.3 | Richard Hughes | 2020-01-30 | 1 | -0/+12 |
| | |||||
* | trivial: Define a G_USB_DEVICE_CLAIM_INTERFACE_NONE rather than using '0' | Richard Hughes | 2020-01-21 | 1 | -0/+1 |
| | |||||
* | trivial: Use spaces and tabs consistently | Richard Hughes | 2020-01-21 | 7 | -263/+263 |
| | |||||
* | Wrap the upstream libusb_strerror() | Richard Hughes | 2020-01-21 | 2 | -39/+2 |
| | | | | We depend on a libusb to always define this. |