fwupd/plugins/ebitdo
Richard Hughes ff704414f6 Use superclassed versions of FuDevice when calling udev_added() and usb_added()
The daemon creates a baseclass of either FuUsbDevice or FuUdevDevice when the
devices are added or coldplugged to match the quirk database and to find out
what plugin to run.

This is proxied to plugins, but they are given the GUsbDevice or GUdevDevice and
the FuDevice is just thrown away. Most plugins either use a FuUsbDevice or
superclassed version like FuNvmeDevice and so we re-create the FuDevice, re-probe
the hardware, re-query the quirk database and then return this to the daemon.

In some cases, plugins actually probe the hardware three times (!) by creating
a FuUsbDevice to get the quirks, so that the plugin knows what kind of
superclass to create, which then itself probes the hardware again.

Passing the temporary FuDevice to the plugins means that the simplest ones can
just fu_plugin_device_add() the passed in object, or create a superclass and
incorporate the actual GUsbDevice and all the GUIDs.

This breaks internal plugin API but speeds up startup substantially and deletes
a lot of code.
2018-09-04 08:22:39 -05:00
..
data 8bitdo: Add initial SF30/SN30 Pro support (#350) 2018-01-08 10:45:55 -05:00
ebitdo.quirk Change the quirk file structure to be more efficient 2018-06-28 13:32:30 +01:00
fu-ebitdo-common.c Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
fu-ebitdo-common.h Remove the unused Emacs indenting headers from all source files 2018-08-09 12:48:04 +01:00
fu-ebitdo-device.c Use superclassed versions of FuDevice when calling udev_added() and usb_added() 2018-09-04 08:22:39 -05:00
fu-ebitdo-device.h Use superclassed versions of FuDevice when calling udev_added() and usb_added() 2018-09-04 08:22:39 -05:00
fu-plugin-ebitdo.c Use superclassed versions of FuDevice when calling udev_added() and usb_added() 2018-09-04 08:22:39 -05:00
meson.build trivial: Remove the 8Bitdo noinst tool 2018-05-18 10:25:28 +01:00
README.md Update README.md 2017-12-22 09:04:09 +00:00

8Bitdo Support

Introduction

This plugin can flash the firmware on the 8Bitdo game pads.

Ebitdo support is supported directly by this project with the embedded libebitdo library and is possible thanks to the vendor open sourcing the flashing tool.

The 8Bitdo devices share legacy USB VID/PIDs with other projects and so we have to be a bit careful to not claim other devices as our own.