Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make gir generation optional. | maxice8 | 2019-02-03 | 1 | -0/+2 | |
| | | | | fixes #13 | |||||
* | gusb/meson.build: pass -DGUSB_COMPILATION to gir compiler | maxice8 | 2019-02-03 | 1 | -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 fwupd | Richard Hughes | 2018-04-19 | 3 | -1/+47 | |
| | ||||||
* | Remove the automake build system | Richard Hughes | 2017-12-19 | 2 | -144/+0 | |
| | ||||||
* | trivial: Remove dead meson code | Richard Hughes | 2017-12-19 | 1 | -1/+0 | |
| | ||||||
* | trivial: Fix two -Wswitch-default warnings | Richard Hughes | 2017-12-19 | 2 | -0/+4 | |
| | ||||||
* | Port to the Meson build system | Richard Hughes | 2017-12-19 | 1 | -0/+157 | |
| | ||||||
* | Allow changing the path to usb.ids file | Ting-Wei Lan | 2017-12-19 | 1 | -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.h | Ting-Wei Lan | 2017-12-19 | 6 | -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_DEVICES | Richard Hughes | 2017-07-24 | 2 | -7/+2 | |
| | ||||||
* | Add g_usb_context_set_flags() | Richard Hughes | 2017-07-23 | 5 | -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 Hughes | 2017-03-24 | 1 | -5/+6 | |
| | ||||||
* | Correctly detect removed devices when using g_usb_context_rescan() | Richard Hughes | 2017-03-24 | 1 | -3/+3 | |
| | ||||||
* | Fixup VERSION script | Dominique Leuenberger | 2016-05-30 | 1 | -2/+2 | |
| | | | | Fix commit cfaab3e | |||||
* | Fixup symbol version table up to version 0.2.9 | Dominique Leuenberger | 2016-05-25 | 1 | -0/+24 | |
| | ||||||
* | trivial: Return the replugged device when using g_usb_context_get_devices() | Richard Hughes | 2016-03-11 | 1 | -3/+8 | |
| | ||||||
* | trivial: Use the defined main context when waiting for replug | Richard Hughes | 2016-03-11 | 1 | -1/+1 | |
| | ||||||
* | Add g_usb_context_wait_for_replug() | Richard Hughes | 2016-03-10 | 2 | -2/+133 | |
| | ||||||
* | 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 | 2 | -6/+14 | |
| | | | | Sometimes we want to handle this differently... | |||||
* | Convert GUsbInterface to user the G_DECLARE_FINAL_TYPE macro | Ignacio Casal Quinteiro | 2015-11-17 | 3 | -50/+21 | |
| | ||||||
* | 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 | 2 | -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 Hughes | 2015-11-10 | 2 | -0/+118 | |
| | | | | This allows us to discover what interfaces are exported by a GUsbDevice. | |||||
* | Add a thin glib wrapper around a libusb_interface_descriptor | Richard Hughes | 2015-11-10 | 6 | -0/+357 | |
| | | | | Sometimes we do actually need to care about what interfaces a device exports. | |||||
* | Add g_usb_device_get_release() | Richard Hughes | 2015-11-10 | 2 | -2/+21 | |
| | | | | This allows us to get access to the bcdDevice, typically a firmware version. | |||||
* | Support g_autoptr() for all gusb object types | Kalev Lember | 2015-09-14 | 3 | -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 Ancell | 2015-08-03 | 3 | -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 request | Richard Hughes | 2015-06-08 | 1 | -3/+0 | |
| | | | | We no longer hold a reference. | |||||
* | trivial: Fix up style of new method to match the codebase | Richard Hughes | 2015-06-08 | 1 | -1/+6 | |
| | ||||||
* | Allow setting the GMainContext when used for sync methods | Richard Hughes | 2015-05-26 | 3 | -3/+47 | |
| | ||||||
* | trivial: Fix make check | Richard Hughes | 2015-05-26 | 1 | -1/+1 | |
| | ||||||
* | Include all the USB device class codes | Richard Hughes | 2015-05-05 | 2 | -2/+29 | |
| | ||||||
* | Add g_usb_device_get_custom_index() | Richard Hughes | 2015-04-29 | 5 | -0/+130 | |
| | | | | This allows us to get the string index for a given interface descriptor. | |||||
* | use symbol versioning | Pass Automated Testing Suite | 2015-01-27 | 2 | -1/+37 | |
| | ||||||
* | Do not use the cleanup attribute in the unit tests | Ignacio Casal Quinteiro | 2015-01-08 | 1 | -2/+2 | |
| | ||||||
* | 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 | 2 | -14/+42 | |
| | ||||||
* | Revert "Use __attribute__(cleanup) in more places" | Ignacio Casal Quinteiro | 2015-01-08 | 2 | -18/+41 | |
| | | | | This reverts commit cdbd7e6cc165c39580e72ac1415d233f5eaa7101. | |||||
* | Revert "trivial: Add a header file to be able to use _cleanup_(free)" | Ignacio Casal Quinteiro | 2015-01-08 | 2 | -92/+0 | |
| | | | | This reverts commit 8223c11a04b5e54761c7142690fb8c766293f3f1. | |||||
* | Use __attribute__(cleanup) in more places | Richard Hughes | 2015-01-06 | 2 | -41/+18 | |
| | ||||||
* | Add g_usb_device_get_children() | Richard Hughes | 2015-01-05 | 2 | -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 Hughes | 2015-01-05 | 2 | -0/+18 | |
| | ||||||
* | Add g_usb_context_find_by_platform_id() | Richard Hughes | 2015-01-05 | 2 | -0/+49 | |
| | ||||||
* | device: Add g_usb_device_get_vid_as_str() | Richard Hughes | 2015-01-05 | 2 | -0/+42 | |
| | ||||||
* | context: Load usb.ids if required | Richard Hughes | 2015-01-05 | 4 | -2/+155 | |
| | ||||||
* | Generate the platform ID in the device itself | Richard Hughes | 2015-01-05 | 3 | -27/+31 | |
| | | | | It's just cleaner this way. |