summaryrefslogtreecommitdiff
path: root/gusb
Commit message (Collapse)AuthorAgeFilesLines
...
* Make gir generation optional.maxice82019-02-031-0/+2
| | | | fixes #13
* gusb/meson.build: pass -DGUSB_COMPILATION to gir compilermaxice82019-02-031-0/+1
| | | | | | | | This fixes cross building of gir using Yocto Project/Buildroot method. This is also done on atk with -DATK_COMPILATION and gdk-pixbuf with -DGDK_PIXBUF_COMPILATION.
* Add g_usb_version_string() for fwupdRichard Hughes2018-04-193-1/+47
|
* Remove the automake build systemRichard Hughes2017-12-192-144/+0
|
* trivial: Remove dead meson codeRichard Hughes2017-12-191-1/+0
|
* trivial: Fix two -Wswitch-default warningsRichard Hughes2017-12-192-0/+4
|
* Port to the Meson build systemRichard Hughes2017-12-191-0/+157
|
* Allow changing the path to usb.ids fileTing-Wei Lan2017-12-191-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.hTing-Wei Lan2017-12-196-6/+6
| | | | | | | 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-242-7/+2
|
* Add g_usb_context_set_flags()Richard Hughes2017-07-235-15/+101
| | | | 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
|
* Correctly detect removed devices when using g_usb_context_rescan()Richard Hughes2017-03-241-3/+3
|
* Fixup VERSION scriptDominique Leuenberger2016-05-301-2/+2
| | | | Fix commit cfaab3e
* Fixup symbol version table up to version 0.2.9Dominique Leuenberger2016-05-251-0/+24
|
* trivial: Return the replugged device when using g_usb_context_get_devices()Richard Hughes2016-03-111-3/+8
|
* trivial: Use the defined main context when waiting for replugRichard Hughes2016-03-111-1/+1
|
* Add g_usb_context_wait_for_replug()Richard Hughes2016-03-102-2/+133
|
* 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-202-6/+14
| | | | Sometimes we want to handle this differently...
* Convert GUsbInterface to user the G_DECLARE_FINAL_TYPE macroIgnacio Casal Quinteiro2015-11-173-50/+21
|
* 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-102-0/+36
| | | | | | | | 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-102-0/+118
| | | | This allows us to discover what interfaces are exported by a GUsbDevice.
* Add a thin glib wrapper around a libusb_interface_descriptorRichard Hughes2015-11-106-0/+357
| | | | Sometimes we do actually need to care about what interfaces a device exports.
* Add g_usb_device_get_release()Richard Hughes2015-11-102-2/+21
| | | | This allows us to get access to the bcdDevice, typically a firmware version.
* Support g_autoptr() for all gusb object typesKalev Lember2015-09-143-0/+38
| | | | | | This allows using e.g. g_autoptr(GUsbDevice) in other programs, but does not make libgusb itself use g_autoptr, or require a new enough glib to support it.
* Add missing element-type annotations.Robert Ancell2015-08-033-3/+3
| | | | | | 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.
* trivial: Fix up style of new method to match the codebaseRichard Hughes2015-06-081-1/+6
|
* Allow setting the GMainContext when used for sync methodsRichard Hughes2015-05-263-3/+47
|
* trivial: Fix make checkRichard Hughes2015-05-261-1/+1
|
* Include all the USB device class codesRichard Hughes2015-05-052-2/+29
|
* Add g_usb_device_get_custom_index()Richard Hughes2015-04-295-0/+130
| | | | This allows us to get the string index for a given interface descriptor.
* use symbol versioningPass Automated Testing Suite2015-01-272-1/+37
|
* Do not use the cleanup attribute in the unit testsIgnacio Casal Quinteiro2015-01-081-2/+2
|
* 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-082-14/+42
|
* Revert "Use __attribute__(cleanup) in more places"Ignacio Casal Quinteiro2015-01-082-18/+41
| | | | This reverts commit cdbd7e6cc165c39580e72ac1415d233f5eaa7101.
* Revert "trivial: Add a header file to be able to use _cleanup_(free)"Ignacio Casal Quinteiro2015-01-082-92/+0
| | | | This reverts commit 8223c11a04b5e54761c7142690fb8c766293f3f1.
* Use __attribute__(cleanup) in more placesRichard Hughes2015-01-062-41/+18
|
* Add g_usb_device_get_children()Richard Hughes2015-01-052-0/+30
| | | | 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-052-0/+18
|
* Add g_usb_context_find_by_platform_id()Richard Hughes2015-01-052-0/+49
|
* device: Add g_usb_device_get_vid_as_str()Richard Hughes2015-01-052-0/+42
|
* context: Load usb.ids if requiredRichard Hughes2015-01-054-2/+155
|
* Generate the platform ID in the device itselfRichard Hughes2015-01-053-27/+31
| | | | It's just cleaner this way.