Mario Limonciello
32241f4256
Add support for an UpdateMessage
and display it in tools
...
The idea is that if the user should know something about the device update
"after" it's succesfully completed then the plugin can set `UpdateMessage`
for the device and a client can show it.
An example would be a device that doesn't reboot on its own and the user
needs to power cycle it manually.
2019-01-29 13:59:07 -06:00
Mario Limonciello
83a8aab034
trivial: libfwupd: correct documentation for fwupd_device_set_install_duration
2018-10-10 14:31:58 -05:00
Mario Limonciello
7c10696690
Add support for devices to show an estimated flash time ( Closes : #765 )
...
This time is provided to frontends to be able to show estimates
before a user would agree to flash the device.
2018-09-26 11:35:59 +01:00
Mario Limonciello
e3016602f8
Include serial number in daemon device output when trusted
...
This moves the storing of the serial number into the daemon and
when the calling process is UID 0 includes it in device output
2018-09-06 13:34:28 -05:00
Richard Hughes
49a56a4436
trivial: Add exported fwupd_device_compare() for future use
2018-08-10 14:50:43 +01:00
Richard Hughes
02c90d8a03
Remove the unused Emacs indenting headers from all source files
...
Fixes https://github.com/hughsie/fwupd/issues/636
2018-08-09 12:48:04 +01:00
Richard Hughes
e0cd6e0667
Add fwupd_device_incorporate()
...
This allows us to copy properties from a donor object.
2018-06-28 15:51:11 +01:00
Richard Hughes
eeb8017a29
trivial: Remove unused variable in private struct
2018-06-21 21:43:21 +01:00
Mario Limonciello
51308e648a
Adjust all licensing to LGPL 2.1+ ( Closes : #526 )
2018-05-29 09:03:13 +01:00
Richard Hughes
5e447293fa
Add the concept of logical mappings between different devices
...
This allows us to find out the logical parent device, for instance in composite
devices with more than one firmware image for a single device.
We also allow lazily specifying the device parent using a GUID and the engine
then automatically sets the parent object when the GUIDs match, which allows
children and parents to exist in different plugins.
2018-05-03 08:07:04 +01:00
Richard Hughes
86fdd975ad
Prevent a client crash if the daemon somehow sends invalid data
...
Fixes: https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1762617
2018-04-10 11:59:36 +01:00
Richard Hughes
e9c0a3c8cd
trivial: Fix up some gtk-doc introspection issues in libfwupd
2017-10-05 10:32:05 +01:00
Richard Hughes
e0bd53e439
trivial: Use standard _to_variant() and _from_variant() forms
2017-09-28 09:23:52 +01:00
Richard Hughes
9e79223ecf
trivial: C99ify more for-loops
2017-09-28 09:23:52 +01:00
Richard Hughes
603e42d527
trivial: Include the releases as part of the device a{sv} array
2017-09-28 09:23:52 +01:00
Richard Hughes
9e1b14067c
trivial: Always use a a{sv} type to return value
...
Mixing sa{sv} and a{sv} made everything very confusing...
2017-09-28 09:23:52 +01:00
Richard Hughes
10c6a89563
trivial: Do not use 'provider' in the public API
2017-09-28 09:23:52 +01:00
Richard Hughes
80893e29fe
trivial: Remove FwupdResult from libfwupd
2017-09-28 09:23:52 +01:00
Richard Hughes
8880cd09e4
trivial: Fix up some introspection issues
2017-09-19 09:54:16 +01:00
Richard Hughes
fe09a0010f
trivial: Allow adding more than one FwupdRelease to a FwupdDevice
2017-09-15 20:09:03 +01:00
Richard Hughes
93b1576bef
trivial: Add helpers that can be used for returning local files
...
This also allows us to drop the use of FwupdResult in the daemon.
2017-09-15 14:12:18 +01:00
Richard Hughes
cc3de2efa4
Do not store the newest release as part of the FuDevice object
2017-09-15 14:12:18 +01:00
Richard Hughes
8cee383f65
trivial: Add the missing functionality to proxy the update error string
2017-09-13 14:59:32 +01:00
Richard Hughes
a1aab517d1
Move the update state to FwupdDevice
...
It only remained on FwupdResult because I couldn't make up my mind about whether
it was a property of the device, or the firmware release. It's more logically
the former, and that's how plugins are using it.
2017-09-13 14:59:32 +01:00
Richard Hughes
d3b93f83ed
trivial: Fix a small memory leak in fwupd_device_to_string()
2017-09-12 19:57:08 +01:00
Richard Hughes
539a830a36
trivial: Fix a tiny memory leak when setting the summary
2017-09-12 19:34:51 +01:00
Richard Hughes
c1c2fec6f5
Add optional icons to each device
...
This allows us to show the devices in a GUI with a nice icon. Some of the icon
mappings are not perfect and I'll be asking the GNOME designers for some
additions to the icon specification.
Custom vendor icons can also be specified, and /usr/share/fwupd/icons would be
a good place to put them. If vendor icons are used they should show a physical
device with the branding, rather than just the vendor logo.
2017-09-11 17:27:35 +01:00
Richard Hughes
6c6e8d3ab8
Add an 'Summary' property to each device
...
This was already exported in the libfwupd API, but it had no way of being set
from devices or passed from daemon to client.
2017-09-11 09:30:06 +01:00
Mario Limonciello
790701f32b
trivial: adjust get-details and get-devices output Display Name output
...
This returns them back to the more readable 0.8.x behavior where
devices have the name first and then all the details indented.
2017-07-13 16:22:19 -05:00
Mario Limonciello
7e9924d7a7
trivial: Adjust get-devices output order
...
Since changing how the data was shuffled from earlier fwupd versions
the device name is no longer output at the top of the list, fix that.
2017-07-05 17:16:18 -05:00
Richard Hughes
7ee053df51
trivial: Actually generate complete GObjectIntrospection data
2017-06-21 15:32:08 +01:00
Richard Hughes
de5dd8f33d
trivial: Include the name in fwupd_device_to_string()
2017-06-19 13:26:47 +01:00
Richard Hughes
fd381cc96e
Add the ability to restrict the firmware installation to specific vendor IDs
...
This allows us to fix https://github.com/hughsie/lvfs-website/issues/4
2017-06-12 20:22:25 +01:00
Richard Hughes
e979bb3269
trivial: Never allow duplicate checksums to be added to devices or releases
2017-06-07 15:34:53 +01:00
Richard Hughes
68cc00c7e9
Allow multiple checksums on devices and releases
...
Although we supported other hashes than SHA1 (which is now moderately unsafe)
we had to switch the metadata provider and daemon on some kind of flag day to
using SHA256. Since that's somewhat impractical, just allow multiple checksums
to be set on objects and just try to match whatever is given in preference
order.
This also means we can easily transition to other hash types in the future.
The removed API was never present in a tarball release, so not an API break.
2017-06-06 20:06:53 +01:00
Richard Hughes
81c7649dd8
libfwupd: Add fwupd_client_get_devices_simple() to return us an array of devices, not results
2017-06-06 11:10:57 +01:00
Richard Hughes
4db6c4a4b0
libfwupd: Split up FwupdResult into FwupdDevice and FwupdRelease
...
This retains the old API to avoid breaking ABI.
2017-06-05 17:34:36 +01:00