Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | trivial: Use spaces and tabs consistently | Richard Hughes | 2020-01-21 | 1 | -18/+18 |
| | |||||
* | trivial: Use SPDX-License-Identifier tags | Richard Hughes | 2020-01-21 | 1 | -14/+1 |
| | |||||
* | 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> | ||||
* | 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. | ||||
* | More cleanup | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -2/+2 |
| | |||||
* | Remove useless comments | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -18/+0 |
| | |||||
* | Add guards for public methods | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -0/+8 |
| | |||||
* | Put some consistency to method parameters | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -20/+26 |
| | |||||
* | Some cleanup, no need to do the casting | Ignacio Casal Quinteiro | 2014-12-22 | 1 | -10/+1 |
| | |||||
* | Use G_DEFINE_WITH_PRIVATE | Ignacio Casal Quinteiro | 2014-12-22 | 1 | -6/+2 |
| | |||||
* | Use a thread to process libusb1 events | Richard Hughes | 2014-11-25 | 1 | -277/+29 |
| | | | | | | 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 Hughes | 2014-11-21 | 1 | -0/+3 |
| | | | | | | 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: Downgrade the polling message to a G_LOG_LEVEL_DEBUG | Richard Hughes | 2014-11-20 | 1 | -1/+1 |
| | |||||
* | Always set a device platform ID | Richard Hughes | 2014-11-20 | 1 | -2/+7 |
| | | | | | It appears applications go boom when they try to use the unset platform ID as a hash table lookup key... | ||||
* | trivial: Only poll once per second for non-hotplug platforms | Richard Hughes | 2014-11-20 | 1 | -3/+3 |
| | |||||
* | Manually coldplug devices and poll if hotplugging is not available | Richard Hughes | 2014-11-20 | 1 | -29/+123 |
| | |||||
* | Do not try to register a hotplug handler if unsupported | Richard Hughes | 2014-11-20 | 1 | -4/+14 |
| | |||||
* | Use the native hotplug support in libusb 1.0.19 | Richard Hughes | 2014-11-19 | 1 | -139/+75 |
| | |||||
* | Assorted introspection annotation fixes | Evan Nemerson | 2012-06-10 | 1 | -1/+1 |
| | | | | Signed-off-by: Richard Hughes <richard@hughsie.com> | ||||
* | Call g_usb_device_list_coldplug() automatically when finding devices | Richard Hughes | 2011-11-08 | 1 | -0/+6 |
| | |||||
* | Do not leak the GUdev API into the public API of GUsb | Richard Hughes | 2011-10-10 | 1 | -11/+8 |
| | | | | I'm aware this changes API, but it's the right thing to do. | ||||
* | Add g_usb_device_get_platform_id which returns the sysfs path on Linux | Richard Hughes | 2011-10-10 | 1 | -1/+3 |
| | |||||
* | gusb-device: drop g_usb_device_get_descriptor | Hans de Goede | 2011-09-06 | 1 | -5/+0 |
| | | | | | | | | | | | | | | | | | | | | | We are using the contents of the descriptor in various log / GError messages, so just make sure we have it from the start. We can do this since on windows and Mac OS X libusb_get_device_descriptor never fails, and on Linux it will only fail if the device was unplugged since enumerating, in which case a g_warning will be printed. Since we create the GUsbDevice on a udev event, the chances of it being unplugged again already are very very small. And in case it is, we will simply end up with all 0's in the device descriptor, returning 0x0000 for vid/pid just like before. In the future this means we will also return 0 for the number of available configs, which is a problem for apps who actually want to try to do something with descriptors, but given that this only happens on unplugged devices it is once more not a real issue since any (to be implemented) g_usb_device_get_config_descriptor would fail on an unplugged device anyways. Signed-off-by: Hans de Goede <hdegoede@redhat.com> | ||||
* | Prepare for a release in two weeks time | Richard Hughes | 2011-08-19 | 1 | -0/+10 |
| | |||||
* | Include config.h in all source files | Richard Hughes | 2011-08-19 | 1 | -3/+4 |
| | |||||
* | Ensure the parent object finalizer is called in GUsbDeviceList | Richard Hughes | 2011-08-19 | 1 | -0/+2 |
| | |||||
* | trivial: Remove several trailing commas in enums | Richard Hughes | 2011-08-19 | 1 | -3/+3 |
| | |||||
* | Set the GUsbContext for instal use in GUsbDevice | Richard Hughes | 2011-08-18 | 1 | -1/+1 |
| | |||||
* | Add some more detailed error codes to GUsbDevice | Richard Hughes | 2011-08-16 | 1 | -4/+4 |
| | |||||
* | Ensure we have the device descriptor before getting the vendor and product ID's | Richard Hughes | 2011-08-16 | 1 | -0/+6 |
| | |||||
* | Add g_usb_device_list_find_by_vid_pid() as it's required in colord | Richard Hughes | 2011-08-11 | 1 | -0/+39 |
| | |||||
* | Add an error parameter to g_usb_device_list_find_by_bus_address() | Richard Hughes | 2011-08-11 | 1 | -9/+18 |
| | |||||
* | Add some more gt-doc markup to GUsbDevice and GUsbDeviceList | Richard Hughes | 2011-08-11 | 1 | -2/+40 |
| | |||||
* | Fix the GObject signal types in GUsbDeviceList | Richard Hughes | 2011-08-11 | 1 | -4/+4 |
| | |||||
* | Ref the device returned by g_usb_device_list_get_dev_by_bus_n_address() to ↵ | Richard Hughes | 2011-08-11 | 1 | -1/+9 |
| | | | | | | | prevent a crash If we don't ref the device, it can be removed in an idle handler and unref'd internally, and then client code accessing the device will crash. | ||||
* | Add g_usb_device_list_get_devices() to get the complete device list | Richard Hughes | 2011-08-11 | 1 | -0/+13 |
| | |||||
* | Do not duplicate all devices if the user calls g_usb_device_list_coldplug() ↵ | Richard Hughes | 2011-08-11 | 1 | -0/+4 |
| | | | | twice | ||||
* | Make g_usb_device_list_add_dev() return TRUE if the device was added | Richard Hughes | 2011-08-11 | 1 | -6/+7 |
| | |||||
* | Fix building the gtk-docs | Richard Hughes | 2011-08-11 | 1 | -0/+7 |
| | |||||
* | Add GUsbDeviceList | Hans de Goede | 2011-08-10 | 1 | -0/+358 |