summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Reduce the debugging level when emulating firmwareRichard Hughes2023-01-271-0/+2
|
* Close the GUsbDevice objects in gusbcmdRichard Hughes2022-10-171-0/+5
|
* Save device events when requiredRichard Hughes2022-09-081-1/+12
| | | | | | This allows us to simulate an entire context of devices, simulating responses as if the hardware is connected. This allows building rich device-specific unit tests in programs like fwupd, without having to have the hardware attached.
* trivial: Fix clang-tidy ordering issueRichard Hughes2022-09-061-1/+1
|
* Serialize the GUsbDevice to and from JSON formatRichard Hughes2022-09-052-0/+76
| | | | This allows us to write tests that mock up entire devices.
* Reformat the code using clang-formatRichard Hughes2022-09-041-207/+199
| | | | | This frees up mental energy when reviewing patches and is something I should have done a long time ago.
* Use g_autoptr() in a lot more placesRichard Hughes2022-09-041-107/+59
| | | | We started using this several months ago and nobody even noticed.
* Only include the start year in the copyright headerRichard Hughes2022-06-161-1/+1
| | | | | The end year is legally and functionally redundant, and more importantly causes cherry-pick conflicts when trying to maintain old branches.
* trivial: Fix a tiny memork leak when running the gusb test toolRichard Hughes2021-04-121-0/+1
|
* trivial: Check the return code of g_option_context_parse()Richard Hughes2020-09-011-1/+6
|
* trivial: Remove useless gtk-doc comment sectionsRichard Hughes2020-01-211-39/+0
|
* trivial: Use SPDX-License-Identifier tagsRichard Hughes2020-01-211-16/+2
|
* Remove the automake build systemRichard Hughes2017-12-191-45/+0
|
* Port to the Meson build systemRichard Hughes2017-12-191-0/+22
|
* trivial: Call setlocale in main functionTing-Wei Lan2017-12-191-0/+3
| | | | | | It is required to get translated messages from GLib works. Signed-off-by: Richard Hughes <richard@hughsie.com>
* Add g_usb_context_set_flags()Richard Hughes2017-07-231-0/+29
| | | | This allows us to auto-open devices as they are hotplugged.
* Add g_usb_context_wait_for_replug()Richard Hughes2016-03-101-1/+50
|
* Install gusbcmd as a debugging aidRichard Hughes2016-02-191-5/+5
| | | | lsusb requires libudev which isn't available in xdg-app runtimes.
* gusb: minor cleanupIgnacio Casal Quinteiro2015-01-081-3/+4
|
* Remove the cleanup attributes from the rest of the codeIgnacio Casal Quinteiro2015-01-081-5/+12
|
* Revert "Use __attribute__(cleanup) in more places"Ignacio Casal Quinteiro2015-01-081-10/+23
| | | | This reverts commit cdbd7e6cc165c39580e72ac1415d233f5eaa7101.
* Use __attribute__(cleanup) in more placesRichard Hughes2015-01-061-23/+10
|
* Show more helpful output for 'gusb show'Richard Hughes2015-01-051-7/+111
|
* Make the platform ID persistent across re-plugRichard Hughes2014-12-041-1/+2
| | | | | This was technically a regression since the gudev days as some tools require the platform ID to be persistent across re-plug.
* Use a thread to process libusb1 eventsRichard Hughes2014-11-251-16/+6
| | | | | | The libusb_set_pollfd_notifiers() function will only work on Linux and we can use a thread to do exactly the same thing in a cross platform way with a lot less code.
* trivial: Automatically call _get_source() in _device_list_coldplug()Richard Hughes2014-11-211-3/+0
| | | | | | If API users want to use a different GMainLoop they can call g_usb_context_get_source() before the call to g_usb_device_list_coldplug(), but in most cases working is better than not getting hotplug events.
* trivial: Do not use the deprecated g_type_init()Richard Hughes2014-11-201-5/+1
|
* trivial: Fix tiny memory leak in gusb example toolRichard Hughes2014-11-201-0/+2
|
* Use the native hotplug support in libusb 1.0.19Richard Hughes2014-11-191-0/+3
|
* trivial: CodingStyle fixesRichard Hughes2014-11-191-6/+6
|
* Don't use the deprecated INCLUDES in Makefile.amRichard Hughes2013-01-141-1/+1
|
* Do not leak the GUdev API into the public API of GUsbRichard Hughes2011-10-101-4/+2
| | | | I'm aware this changes API, but it's the right thing to do.
* Use the slice allocator for fixed size structsDebarshi Ray2011-09-031-4/+4
|
* Add a debugging tool to exercise the API that is not installedRichard Hughes2011-08-112-0/+431
This adds the commands 'gusb show' and 'gusb watch' which are not designed to be useful to end users.