Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Lower the libusb dep to fix compile on FreeBSD | Richard Hughes | 2021-05-21 | 1 | -3/+18 |
| | | | | | | | | | | | 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. | ||||
* | trivial: Use spaces and tabs consistently | Richard Hughes | 2020-01-21 | 1 | -79/+79 |
| | |||||
* | trivial: Remove useless gtk-doc comment sections | Richard Hughes | 2020-01-21 | 1 | -6/+0 |
| | |||||
* | trivial: Use SPDX-License-Identifier tags | Richard Hughes | 2020-01-21 | 1 | -14/+1 |
| | |||||
* | Fix high number of wakeups when checking the GUsbContext | Richard Hughes | 2020-01-20 | 1 | -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 | ||||
* | Use a 1ms timeout in the Windows event thread | Richard Hughes | 2019-12-03 | 1 | -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 API | Richard Hughes | 2019-12-03 | 1 | -0/+8 |
| | |||||
* | trivial: Fix some typos spotted using codespell | Richard Hughes | 2019-04-08 | 1 | -3/+3 |
| | |||||
* | Allow changing the path to usb.ids file | Ting-Wei Lan | 2017-12-19 | 1 | -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.h | Ting-Wei Lan | 2017-12-19 | 1 | -1/+1 |
| | | | | | | | 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_DEVICES | Richard Hughes | 2017-07-24 | 1 | -1/+0 |
| | |||||
* | Add g_usb_context_set_flags() | Richard Hughes | 2017-07-23 | 1 | -0/+44 |
| | | | | This allows us to auto-open devices as they are hotplugged. | ||||
* | Correctly detect removed devices when using g_usb_context_rescan() | Richard Hughes | 2017-03-24 | 1 | -3/+3 |
| | |||||
* | trivial: Return the replugged device when using g_usb_context_get_devices() | Richard Hughes | 2016-03-11 | 1 | -3/+8 |
| | |||||
* | trivial: Use the defined main context when waiting for replug | Richard Hughes | 2016-03-11 | 1 | -1/+1 |
| | |||||
* | Add g_usb_context_wait_for_replug() | Richard Hughes | 2016-03-10 | 1 | -1/+127 |
| | |||||
* | Add missing element-type annotations. | Robert Ancell | 2015-08-03 | 1 | -1/+1 |
| | | | | | | This allows g_usb_context_get_devices, usb_device_list_get_devices and g_usb_device_get_children to be used in languages that use gobject introspection like Vala, Python etc. | ||||
* | trivial: Fix up style of new method to match the codebase | Richard Hughes | 2015-06-08 | 1 | -1/+6 |
| | |||||
* | Allow setting the GMainContext when used for sync methods | Richard Hughes | 2015-05-26 | 1 | -0/+41 |
| | |||||
* | Remove the cleanup attributes from the rest of the code | Ignacio Casal Quinteiro | 2015-01-08 | 1 | -12/+36 |
| | |||||
* | Revert "Use __attribute__(cleanup) in more places" | Ignacio Casal Quinteiro | 2015-01-08 | 1 | -6/+13 |
| | | | | This reverts commit cdbd7e6cc165c39580e72ac1415d233f5eaa7101. | ||||
* | Use __attribute__(cleanup) in more places | Richard Hughes | 2015-01-06 | 1 | -13/+6 |
| | |||||
* | Add g_usb_context_find_by_platform_id() | Richard Hughes | 2015-01-05 | 1 | -0/+46 |
| | |||||
* | context: Load usb.ids if required | Richard Hughes | 2015-01-05 | 1 | -0/+123 |
| | |||||
* | Generate the platform ID in the device itself | Richard Hughes | 2015-01-05 | 1 | -24/+1 |
| | | | | It's just cleaner this way. | ||||
* | Don't filter out hub devices when getting the device list | Richard Hughes | 2014-12-31 | 1 | -5/+0 |
| | | | | Sometimes it's the hub we want to enumerate... | ||||
* | context: use g_object_notify_by_pspec | Ignacio Casal Quinteiro | 2014-12-26 | 1 | -1/+1 |
| | |||||
* | context: do not leak error | Ignacio Casal Quinteiro | 2014-12-26 | 1 | -0/+1 |
| | |||||
* | context: use g_object_class_install_properties | Ignacio Casal Quinteiro | 2014-12-26 | 1 | -11/+12 |
| | |||||
* | context: use G_DEFINE_QUARK | Ignacio Casal Quinteiro | 2014-12-26 | 1 | -16/+9 |
| | |||||
* | context: minor optmization of the rescan | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -5/+5 |
| | | | | | Add the devices after removing the ones that do not exists anymore, this way we avoid checking the new ones. | ||||
* | context: use dispose since it makes more sense | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -11/+14 |
| | | | | | Basically if there is an error some of those variables might not be set so better check them before finalizing them. | ||||
* | context: properly notify the debug-level property | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -5/+11 |
| | |||||
* | context: there is not need to use gotos | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -14/+20 |
| | |||||
* | Remove useless comments | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -70/+20 |
| | |||||
* | Add guards for public methods | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -3/+19 |
| | |||||
* | device: make it implement initable | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -1/+8 |
| | |||||
* | context: use an atomic int to handle the event thread loop | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -4/+6 |
| | |||||
* | Put some consistency to method parameters | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -27/+34 |
| | |||||
* | context: make it implement GInitable | Ignacio Casal Quinteiro | 2014-12-22 | 1 | -34/+53 |
| | |||||
* | Use G_DEFINE_WITH_PRIVATE | Ignacio Casal Quinteiro | 2014-12-22 | 1 | -6/+2 |
| | |||||
* | Make the platform ID persistent across re-plug | Richard Hughes | 2014-12-04 | 1 | -4/+27 |
| | | | | | This was technically a regression since the gudev days as some tools require the platform ID to be persistent across re-plug. | ||||
* | Correctly terminate the libusb event thread | Richard Hughes | 2014-11-26 | 1 | -2/+2 |
| | |||||
* | Use a thread to process libusb1 events | Richard Hughes | 2014-11-25 | 1 | -67/+447 |
| | | | | | | 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. | ||||
* | Do not use deprecated GLib functionality | Richard Hughes | 2013-02-21 | 1 | -5/+4 |
| | |||||
* | Rename inconsistently named gusb_* symbols to g_usb_* | Evan Nemerson | 2012-06-10 | 1 | -1/+1 |
| | | | | Signed-off-by: Richard Hughes <richard@hughsie.com> | ||||
* | Ensure that there is only one GUsbSource for each GUsbContext | Debarshi Ray | 2011-09-08 | 1 | -1/+40 |
| | | | | | | | | | | As a result, g_usb_source_{new,destroy} have been moved to a private header, and are called from the get_source and finalize methods of GUsbContext. Note that the GUsbSource is lazy allocated and only created when g_usb_context_get_source is called for the first time for a particular GUsbContext. | ||||
* | Provide our own gusb_strerror function | Hans de Goede | 2011-09-06 | 1 | -4/+2 |
| | | | | | | | | | | It does not look like libusb_strerror is going upstream any time soon because of i18n worries, so provide out own implementation for now. Once libusb_strerror hits upstream, and when compiling against a new enough libusb, we can turn this into a simple wrapper. Signed-off-by: Hans de Goede <hdegoede@redhat.com> | ||||
* | Prepare for a release in two weeks time | Richard Hughes | 2011-08-19 | 1 | -4/+4 |
| | |||||
* | trivial: Remove several trailing commas in enums | Richard Hughes | 2011-08-19 | 1 | -1/+1 |
| |