summaryrefslogtreecommitdiff
path: root/gusb
Commit message (Collapse)AuthorAgeFilesLines
* generate-version-script: Don't hard-code the path of python3Ting-Wei Lan2020-03-241-0/+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-041-0/+1
| | | | | | | 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>
* Validate the exported symbol list during checkRichard Hughes2020-02-202-12/+92
| | | | | 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: 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-211-6/+0
|
* Use '#pragma once' to reduce boilerplateRichard Hughes2020-01-2115-62/+15
|
* trivial: Use SPDX-License-Identifier tagsRichard Hughes2020-01-2124-344/+24
|
* 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
* 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-031-0/+8
|
* trivial: Allow compiling as a subprojectRichard Hughes2019-11-231-0/+9
|
* Add g_usb_device_get_spec()Richard Hughes2019-11-153-0/+25
| | | | Sometimes we do care about the USB version number of the device.
* trivial: Don't use brackets for G_USB_x_VERSIONRichard Hughes2019-11-151-3/+3
| | | | This allows us to join them as strings if required.
* trivial: Remove untrue statementRichard Hughes2019-11-151-1/+0
|
* gi: made actual_length introspection annotationsgrindhold2019-09-261-3/+3
| | | | | | the actual_length parameter of GUsbDevice's transfer-methods should be out parameters. otherwise the generated vala bindings will cause programs to segfault.
* trivial: Fix some typos spotted using codespellRichard Hughes2019-04-085-7/+7
|
* Make gir generation optional.maxice82019-02-031-0/+2
| | | | fixes #13
* gusb/meson.build: pass -DGUSB_COMPILATION to gir compilermaxice82019-02-031-0/+1
| | | | | | | | This fixes cross building of gir using Yocto Project/Buildroot method. This is also done on atk with -DATK_COMPILATION and gdk-pixbuf with -DGDK_PIXBUF_COMPILATION.
* Add g_usb_version_string() for fwupdRichard Hughes2018-04-193-1/+47
|
* Remove the automake build systemRichard Hughes2017-12-192-144/+0
|
* trivial: Remove dead meson codeRichard Hughes2017-12-191-1/+0
|
* trivial: Fix two -Wswitch-default warningsRichard Hughes2017-12-192-0/+4
|
* Port to the Meson build systemRichard Hughes2017-12-191-0/+157
|
* Allow changing the path to usb.ids fileTing-Wei Lan2017-12-191-1/+1
| | | | | | FreeBSD uses /usr/local/share/usbids/usb.ids instead. Signed-off-by: Richard Hughes <richard@hughsie.com>
* Replace libusb-1.0/libusb.h with libusb.hTing-Wei Lan2017-12-196-6/+6
| | | | | | | FreeBSD doesn't have the libusb-1.0 directory, and required include arguments should be provided by pkg-config. Signed-off-by: Richard Hughes <richard@hughsie.com>
* trivial: Be less vocal when using G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICESRichard Hughes2017-07-242-7/+2
|
* Add g_usb_context_set_flags()Richard Hughes2017-07-235-15/+101
| | | | This allows us to auto-open devices as they are hotplugged.
* Fix a memory leak when using g_usb_device_control_transfer_async()Richard Hughes2017-03-241-5/+6
|
* Correctly detect removed devices when using g_usb_context_rescan()Richard Hughes2017-03-241-3/+3
|
* Fixup VERSION scriptDominique Leuenberger2016-05-301-2/+2
| | | | Fix commit cfaab3e
* Fixup symbol version table up to version 0.2.9Dominique Leuenberger2016-05-251-0/+24
|
* trivial: Return the replugged device when using g_usb_context_get_devices()Richard Hughes2016-03-111-3/+8
|
* trivial: Use the defined main context when waiting for replugRichard Hughes2016-03-111-1/+1
|
* Add g_usb_context_wait_for_replug()Richard Hughes2016-03-102-2/+133
|
* trivial: Fix compile warning with GCC6Richard Hughes2016-03-101-1/+1
|
* Revert "Allow getting the GUsbContext from the GUsbDevice"Richard Hughes2015-11-251-4/+1
| | | | | | This reverts commit 7561b53eed51776b393e0b5e270cb07d637835a9. It's a layering violation, and I've found a better way to do this now.