summaryrefslogtreecommitdiff
path: root/gusb/gusb-device-list.c
Commit message (Collapse)AuthorAgeFilesLines
* trivial: Use spaces and tabs consistentlyRichard Hughes2020-01-211-18/+18
|
* trivial: Use SPDX-License-Identifier tagsRichard Hughes2020-01-211-14/+1
|
* Replace libusb-1.0/libusb.h with libusb.hTing-Wei Lan2017-12-191-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 Ancell2015-08-031-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 cleanupIgnacio Casal Quinteiro2014-12-241-2/+2
|
* Remove useless commentsIgnacio Casal Quinteiro2014-12-241-18/+0
|
* Add guards for public methodsIgnacio Casal Quinteiro2014-12-241-0/+8
|
* Put some consistency to method parametersIgnacio Casal Quinteiro2014-12-231-20/+26
|
* Some cleanup, no need to do the castingIgnacio Casal Quinteiro2014-12-221-10/+1
|
* Use G_DEFINE_WITH_PRIVATEIgnacio Casal Quinteiro2014-12-221-6/+2
|
* Use a thread to process libusb1 eventsRichard Hughes2014-11-251-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 Hughes2014-11-211-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_DEBUGRichard Hughes2014-11-201-1/+1
|
* Always set a device platform IDRichard Hughes2014-11-201-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 platformsRichard Hughes2014-11-201-3/+3
|
* Manually coldplug devices and poll if hotplugging is not availableRichard Hughes2014-11-201-29/+123
|
* Do not try to register a hotplug handler if unsupportedRichard Hughes2014-11-201-4/+14
|
* Use the native hotplug support in libusb 1.0.19Richard Hughes2014-11-191-139/+75
|
* Assorted introspection annotation fixesEvan Nemerson2012-06-101-1/+1
| | | | Signed-off-by: Richard Hughes <richard@hughsie.com>
* Call g_usb_device_list_coldplug() automatically when finding devicesRichard Hughes2011-11-081-0/+6
|
* Do not leak the GUdev API into the public API of GUsbRichard Hughes2011-10-101-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 LinuxRichard Hughes2011-10-101-1/+3
|
* gusb-device: drop g_usb_device_get_descriptorHans de Goede2011-09-061-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 timeRichard Hughes2011-08-191-0/+10
|
* Include config.h in all source filesRichard Hughes2011-08-191-3/+4
|
* Ensure the parent object finalizer is called in GUsbDeviceListRichard Hughes2011-08-191-0/+2
|
* trivial: Remove several trailing commas in enumsRichard Hughes2011-08-191-3/+3
|
* Set the GUsbContext for instal use in GUsbDeviceRichard Hughes2011-08-181-1/+1
|
* Add some more detailed error codes to GUsbDeviceRichard Hughes2011-08-161-4/+4
|
* Ensure we have the device descriptor before getting the vendor and product ID'sRichard Hughes2011-08-161-0/+6
|
* Add g_usb_device_list_find_by_vid_pid() as it's required in colordRichard Hughes2011-08-111-0/+39
|
* Add an error parameter to g_usb_device_list_find_by_bus_address()Richard Hughes2011-08-111-9/+18
|
* Add some more gt-doc markup to GUsbDevice and GUsbDeviceListRichard Hughes2011-08-111-2/+40
|
* Fix the GObject signal types in GUsbDeviceListRichard Hughes2011-08-111-4/+4
|
* Ref the device returned by g_usb_device_list_get_dev_by_bus_n_address() to ↵Richard Hughes2011-08-111-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 listRichard Hughes2011-08-111-0/+13
|
* Do not duplicate all devices if the user calls g_usb_device_list_coldplug() ↵Richard Hughes2011-08-111-0/+4
| | | | twice
* Make g_usb_device_list_add_dev() return TRUE if the device was addedRichard Hughes2011-08-111-6/+7
|
* Fix building the gtk-docsRichard Hughes2011-08-111-0/+7
|
* Add GUsbDeviceListHans de Goede2011-08-101-0/+358