summaryrefslogtreecommitdiff
path: root/gusb/gusb-device.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add g_usb_device_get_spec()Richard Hughes2019-11-151-0/+19
| | | | Sometimes we do care about the USB version number of the device.
* 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-081-1/+1
|
* trivial: Fix two -Wswitch-default warningsRichard Hughes2017-12-191-0/+2
|
* 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>
* trivial: Be less vocal when using G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICESRichard Hughes2017-07-241-6/+2
|
* Add g_usb_context_set_flags()Richard Hughes2017-07-231-15/+33
| | | | 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
|
* 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.
* Add a PERMISSION_DENIED error enumRichard Hughes2015-11-201-6/+13
| | | | Sometimes we want to handle this differently...
* trivial: Remove typo that meant we only returned one interfaceRichard Hughes2015-11-161-1/+0
|
* Ignore the not-found error when resetting a deviceRichard Hughes2015-11-121-0/+2
| | | | This is what most USB device will return for success.
* Allow getting the GUsbContext from the GUsbDeviceRichard Hughes2015-11-101-1/+4
| | | | | This semi-private feature allows us to deal with resetting GUsbDevices that come back with different VID:PID values.
* Add g_usb_device_set_interface_alt()Richard Hughes2015-11-101-0/+32
| | | | | | | | I did think of adding this as g_usb_interface_set_alt_setting() but the other claim() and release() methods are already on the the device object. This lets us set an alternate setting after we've claimed an interface which allows us to select non-default targets when flashing DFU-capable devices.
* Add g_usb_device_get_interfaces()Richard Hughes2015-11-101-0/+109
| | | | This allows us to discover what interfaces are exported by a GUsbDevice.
* Add g_usb_device_get_release()Richard Hughes2015-11-101-1/+19
| | | | This allows us to get access to the bcdDevice, typically a firmware version.
* 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.
* Do not unref the GMainContext after each requestRichard Hughes2015-06-081-3/+0
| | | | We no longer hold a reference.
* Allow setting the GMainContext when used for sync methodsRichard Hughes2015-05-261-3/+3
|
* Include all the USB device class codesRichard Hughes2015-05-051-1/+1
|
* Add g_usb_device_get_custom_index()Richard Hughes2015-04-291-0/+58
| | | | This allows us to get the string index for a given interface descriptor.
* device: move new methods with the rest of public onesIgnacio Casal Quinteiro2015-01-081-55/+59
| | | | Also adds the Since tags
* Remove the cleanup attributes from the rest of the codeIgnacio Casal Quinteiro2015-01-081-2/+6
|
* Add g_usb_device_get_children()Richard Hughes2015-01-051-0/+29
| | | | This is slow, but it's not expected to be called 1000's of times.
* Add g_usb_device_get_port_number()Richard Hughes2015-01-051-0/+17
|
* device: Add g_usb_device_get_vid_as_str()Richard Hughes2015-01-051-0/+40
|
* Generate the platform ID in the device itselfRichard Hughes2015-01-051-2/+30
| | | | It's just cleaner this way.
* Add g_usb_device_get_parent()Richard Hughes2015-01-051-0/+22
| | | | This allows us to create something more than a flat list of devices.
* device: pass the correct parameters to g_task_is_validIgnacio Casal Quinteiro2014-12-301-3/+3
|
* device: use g_object_class_install_propertiesIgnacio Casal Quinteiro2014-12-261-19/+20
|
* device: use G_DEFINE_QUARKIgnacio Casal Quinteiro2014-12-261-16/+9
|
* device: port to GTaskIgnacio Casal Quinteiro2014-12-241-161/+114
|
* More small cleanupIgnacio Casal Quinteiro2014-12-241-10/+0
|
* Add guards for public methodsIgnacio Casal Quinteiro2014-12-241-10/+40
|
* device: use g_set_error_literalIgnacio Casal Quinteiro2014-12-231-2/+2
|
* device: make it implement initableIgnacio Casal Quinteiro2014-12-231-34/+77
|
* device: do the right castingIgnacio Casal Quinteiro2014-12-231-1/+1
|
* device: use dispose to unref the objectsIgnacio Casal Quinteiro2014-12-231-6/+17
|
* device: use constructed instead of constructorIgnacio Casal Quinteiro2014-12-231-17/+5
| | | | This is just clearer.
* device: reorganize code to not use an useless prototypeIgnacio Casal Quinteiro2014-12-231-150/+132
| | | | This also removes useless comments about static methods
* device: add get_device_subclass and get_device_protocol methodsIgnacio Casal Quinteiro2014-12-231-0/+34
|
* Put some consistency to method parametersIgnacio Casal Quinteiro2014-12-231-116/+126
|
* Some cleanup, no need to do the castingIgnacio Casal Quinteiro2014-12-221-7/+5
|
* Use G_DEFINE_WITH_PRIVATEIgnacio Casal Quinteiro2014-12-221-6/+2
|
* Make the platform ID persistent across re-plugRichard Hughes2014-12-041-1/+4
| | | | | 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-14/+11
| | | | | | 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.
* Ignore 'unsupported' as a return value when dealing with kernel driversRichard Hughes2014-11-201-0/+2
|
* Always set a device platform IDRichard Hughes2014-11-201-1/+1
| | | | | It appears applications go boom when they try to use the unset platform ID as a hash table lookup key...