Richard Hughes
bc93e4ab6e
Make all providers and plugins share a GUsbContext
...
This means we don't have more that one thread just watching for the USB
hotplug events. To achieve this split up the coldplug into setup and coldplug
phases and run the enumerate just once in the daemon.
2016-12-08 19:51:55 +00:00
Richard Hughes
73b3bc59ac
trivial: fake DFU runtime devices need a manual step
2016-10-14 18:07:34 +01:00
Richard Hughes
cec5c1dd88
Do not attempt to add DFU devices not in runtime mode
2016-08-25 13:05:42 +01:00
Richard Hughes
644562e291
Use the correct define prefix for FwupdDeviceFlags
...
Also, add the compat flags so we don't break API.
2016-08-22 10:30:24 +01:00
Richard Hughes
876c007b1a
Allow providers to export percentage completion
2016-08-17 17:46:15 +01:00
Richard Hughes
ce38d94d5e
trivial: Get rid of useless internal-only gtk-doc markup
2016-06-29 11:25:25 +01:00
Richard Hughes
d0583ae340
Only claim the DFU interface when required
...
It appears that some expensive USB sound cards do not like the DFU interface
being claimed at the same time the kernel starts using a different endpoint.
I suspect this is a device bug or limitation in some reference implementation
somewhere, but seeing as we only need the interface when verifying or writing
new firmware the sensible thing to do is not claim it until required.
Fixes: https://github.com/hughsie/fwupd/issues/50
2016-06-08 16:42:49 +01:00
Richard Hughes
4580ed128b
trivial: Prevent critical warning when verifying
2016-06-02 08:50:59 +01:00
Richard Hughes
043bc15f6d
Allow metainfo files to match only specific revisions of devices
...
For example, matching on the 'USB\VID_0000&PID_0000&REV_0000' GUID rather than
the 'USB\VID_0000&PID_0000' GUID.
This is now possible as we can specify multiple GUIDs for a device.
2016-05-17 18:46:25 +01:00
Richard Hughes
99147f180b
Allow devices to have multiple assigned GUIDs
2016-05-17 09:35:04 +01:00
Richard Hughes
af2f3f9288
Allow SHA-256 hashes when verifying
...
Although, stick to the old default of SHA-1 for now.
2016-03-18 12:33:47 +00:00
Richard Hughes
2d6e186800
Rename some of the new libfwupd API to align with the D-Bus names
2016-03-18 09:20:40 +00:00
Richard Hughes
8e9762d174
Use libfwupd inside the daemon
...
This also entailed writing some compat defines to work on FuDevices without
casting each one to a FwupdResult.
2016-03-17 10:14:17 +00:00
Richard Hughes
b94f2f0488
Export FwupdUpdateFlags in libfwupd
2016-03-17 09:52:00 +00:00
Richard Hughes
da9804d8be
Show ignored DFU devices in dfu-util, but not in fwupd
...
This allows desktop software to ignore the device, but leaves the device
controllable by the dfu-tool command line client.
2016-03-07 08:47:11 +00:00
Richard Hughes
9b1349b885
libdfu: Add an explicit 'attach' method
...
This can also deal with the m-stack quirk in a central place.
2015-11-27 10:54:26 +00:00
Richard Hughes
922dbc721a
Rescan the DFU device after firmware has been updated
2015-11-25 15:01:18 +00:00
Richard Hughes
6511f5011f
f 5d057a8fce
2015-11-25 13:53:10 +00:00
Richard Hughes
a6778df664
f 5d057a8fce
2015-11-25 13:39:54 +00:00
Richard Hughes
0bb530be97
libdfu: Copy the platform ID and invalidate the GUsbDevice when removed
2015-11-25 10:27:36 +00:00
Richard Hughes
5d057a8fce
Split out the DFU provider as a new file
2015-11-25 10:27:36 +00:00