Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add g_usb_device_get_spec() | Richard Hughes | 2019-11-15 | 1 | -0/+19 | |
| | | | | Sometimes we do care about the USB version number of the device. | |||||
* | trivial: Remove untrue statement | Richard Hughes | 2019-11-15 | 1 | -1/+0 | |
| | ||||||
* | gi: made actual_length introspection annotations | grindhold | 2019-09-26 | 1 | -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 codespell | Richard Hughes | 2019-04-08 | 1 | -1/+1 | |
| | ||||||
* | trivial: Fix two -Wswitch-default warnings | Richard Hughes | 2017-12-19 | 1 | -0/+2 | |
| | ||||||
* | 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 | -6/+2 | |
| | ||||||
* | Add g_usb_context_set_flags() | Richard Hughes | 2017-07-23 | 1 | -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 Hughes | 2017-03-24 | 1 | -5/+6 | |
| | ||||||
* | trivial: Fix compile warning with GCC6 | Richard Hughes | 2016-03-10 | 1 | -1/+1 | |
| | ||||||
* | Revert "Allow getting the GUsbContext from the GUsbDevice" | Richard Hughes | 2015-11-25 | 1 | -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 enum | Richard Hughes | 2015-11-20 | 1 | -6/+13 | |
| | | | | Sometimes we want to handle this differently... | |||||
* | trivial: Remove typo that meant we only returned one interface | Richard Hughes | 2015-11-16 | 1 | -1/+0 | |
| | ||||||
* | Ignore the not-found error when resetting a device | Richard Hughes | 2015-11-12 | 1 | -0/+2 | |
| | | | | This is what most USB device will return for success. | |||||
* | Allow getting the GUsbContext from the GUsbDevice | Richard Hughes | 2015-11-10 | 1 | -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 Hughes | 2015-11-10 | 1 | -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 Hughes | 2015-11-10 | 1 | -0/+109 | |
| | | | | This allows us to discover what interfaces are exported by a GUsbDevice. | |||||
* | Add g_usb_device_get_release() | Richard Hughes | 2015-11-10 | 1 | -1/+19 | |
| | | | | This allows us to get access to the bcdDevice, typically a firmware version. | |||||
* | 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. | |||||
* | Do not unref the GMainContext after each request | Richard Hughes | 2015-06-08 | 1 | -3/+0 | |
| | | | | We no longer hold a reference. | |||||
* | Allow setting the GMainContext when used for sync methods | Richard Hughes | 2015-05-26 | 1 | -3/+3 | |
| | ||||||
* | Include all the USB device class codes | Richard Hughes | 2015-05-05 | 1 | -1/+1 | |
| | ||||||
* | Add g_usb_device_get_custom_index() | Richard Hughes | 2015-04-29 | 1 | -0/+58 | |
| | | | | This allows us to get the string index for a given interface descriptor. | |||||
* | device: move new methods with the rest of public ones | Ignacio Casal Quinteiro | 2015-01-08 | 1 | -55/+59 | |
| | | | | Also adds the Since tags | |||||
* | Remove the cleanup attributes from the rest of the code | Ignacio Casal Quinteiro | 2015-01-08 | 1 | -2/+6 | |
| | ||||||
* | Add g_usb_device_get_children() | Richard Hughes | 2015-01-05 | 1 | -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 Hughes | 2015-01-05 | 1 | -0/+17 | |
| | ||||||
* | device: Add g_usb_device_get_vid_as_str() | Richard Hughes | 2015-01-05 | 1 | -0/+40 | |
| | ||||||
* | Generate the platform ID in the device itself | Richard Hughes | 2015-01-05 | 1 | -2/+30 | |
| | | | | It's just cleaner this way. | |||||
* | Add g_usb_device_get_parent() | Richard Hughes | 2015-01-05 | 1 | -0/+22 | |
| | | | | This allows us to create something more than a flat list of devices. | |||||
* | device: pass the correct parameters to g_task_is_valid | Ignacio Casal Quinteiro | 2014-12-30 | 1 | -3/+3 | |
| | ||||||
* | device: use g_object_class_install_properties | Ignacio Casal Quinteiro | 2014-12-26 | 1 | -19/+20 | |
| | ||||||
* | device: use G_DEFINE_QUARK | Ignacio Casal Quinteiro | 2014-12-26 | 1 | -16/+9 | |
| | ||||||
* | device: port to GTask | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -161/+114 | |
| | ||||||
* | More small cleanup | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -10/+0 | |
| | ||||||
* | Add guards for public methods | Ignacio Casal Quinteiro | 2014-12-24 | 1 | -10/+40 | |
| | ||||||
* | device: use g_set_error_literal | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -2/+2 | |
| | ||||||
* | device: make it implement initable | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -34/+77 | |
| | ||||||
* | device: do the right casting | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -1/+1 | |
| | ||||||
* | device: use dispose to unref the objects | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -6/+17 | |
| | ||||||
* | device: use constructed instead of constructor | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -17/+5 | |
| | | | | This is just clearer. | |||||
* | device: reorganize code to not use an useless prototype | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -150/+132 | |
| | | | | This also removes useless comments about static methods | |||||
* | device: add get_device_subclass and get_device_protocol methods | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -0/+34 | |
| | ||||||
* | Put some consistency to method parameters | Ignacio Casal Quinteiro | 2014-12-23 | 1 | -116/+126 | |
| | ||||||
* | Some cleanup, no need to do the casting | Ignacio Casal Quinteiro | 2014-12-22 | 1 | -7/+5 | |
| | ||||||
* | 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 | -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 events | Richard Hughes | 2014-11-25 | 1 | -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 drivers | Richard Hughes | 2014-11-20 | 1 | -0/+2 | |
| | ||||||
* | Always set a device platform ID | Richard Hughes | 2014-11-20 | 1 | -1/+1 | |
| | | | | | It appears applications go boom when they try to use the unset platform ID as a hash table lookup key... |