Richard Hughes
d0cff7caec
Remove autoconf-isms from the meson configure options
...
See https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting
2017-11-27 18:07:53 +00:00
Richard Hughes
95ca91a515
trivial: Clarify two gtk-doc comments to explain the flags better
2017-11-11 21:06:14 +00:00
Richard Hughes
8175f6d136
libfwupd: Remove a pointless call to fwupd_remote_build_uri()
2017-11-09 12:15:30 +00:00
Richard Hughes
98a8046d7b
trivial: Fix a tiny memory leak when processing signals from the daemon
2017-10-19 17:13:19 +01:00
Richard Hughes
f50eca4f55
trivial: Add FWUPD_STATUS_DEVICE_BUSY
...
This is when we're waiting for the device, but we don't know why.
2017-10-12 12:43:25 +01:00
Richard Hughes
f497dac356
trivial: Skip some self tests if the running fwupd is too old
2017-10-05 21:18:15 +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
87f8a4a284
Add a waiting-for-auth daemon state
...
Using IDLE for this isn't right as we're basically blocked on the user.
2017-10-02 14:50:26 +01:00
Richard Hughes
7f6d78fb1b
Add fwupd_remote_get_checksum() to use in client programs
2017-09-28 09:23:52 +01:00
Richard Hughes
d727929327
Generate the LD script from the GObject Introspection data
...
Also, we now verify the version script is correct each time we run the tests;
the consequences of getting the version script wrong are terribly bad.
Note, we can't actually use generated .map file for two reasons:
1. We don't hard depend on GObject Introspection
2. The map file is required to build the lib that the GIR is built from
To avoid the circular dep, and to ensure we don't change exported API
accidentaly actually check in a version of the version script to git.
2017-09-28 09:23:52 +01:00
Richard Hughes
9342996e7e
trivial: Use more defined result keys for FwupdRemote
...
Specifically here we want to use 'RemoteId' rather than just 'Id'...
2017-09-28 09:23:52 +01:00
Richard Hughes
b2fb80925c
trivial: Remove fwupd_remote_get_filename()
...
The data for these was just being generated internally based on the ID and the
basename of the original URI, and that's easy for the calling application to do
itself.
2017-09-28 09:23:52 +01:00
Richard Hughes
642ec13754
trivial: Remove GetUpdates as it is no longer used
2017-09-28 09:23:52 +01:00
Richard Hughes
b73ff8a346
trivial: Use FwupdStatus in the dfu plugin
2017-09-28 09:23:52 +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
7965721015
trivial: Restore a sensible amount of padding in the FwupdClientClass
...
We broke API recently, we might as well go full throttle.
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
5b20c18656
trivial: Convert FwupdRemote from a FINAL to DERIVABLE type
...
The latter is best-practice in a library so that objects can be superclassed by
client programs.
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
696934a7c3
trivial: Remove deprecated FwupdResult API
2017-09-28 09:23:52 +01:00
Richard Hughes
fbc5101e56
trivial: Remove the deprecated FWUPD_RESULT_KEY_DEVICE_CHECKSUM_KIND
2017-09-28 09:23:52 +01:00
Richard Hughes
b86ef97b36
trivial: Remove fwupd_remote_build_uri()
...
This also removes the long-deprecated fwupd_remote_get_uri() and fwupd_remote_get_uri_asc()
2017-09-28 09:23:52 +01:00
Richard Hughes
ba73c76d69
trivial: Remove the deprecated fwupd_client_update_metadata()
...
Also, rename fwupd_client_update_metadata_with_id() to it's now-removed counterpart.
2017-09-28 09:23:52 +01:00
Richard Hughes
07f963a52d
trivial: Remove the deprecated fwupd_client_get_details()
...
Also, rename fwupd_client_get_details_local() to it's now-removed counterpart.
2017-09-28 09:23:52 +01:00
Richard Hughes
eb94c14022
trivial: Remove the deprecated fwupd_client_get_devices()
...
Also, rename fwupd_client_get_devices_simple() to it's now-removed counterpart.
2017-09-28 09:23:52 +01:00
Richard Hughes
f90cc4507f
trivial: Remove two more deprecated defines
2017-09-28 09:23:52 +01:00
Richard Hughes
94110f5983
Remove some deprecated #define names and bump the soname
...
Also, bump soname as we're going to clean up a lot of things now.
Many thanks to Mario Limonciello for all the Debian-specific changes.
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
a96413a368
Add a method to return a list of upgrades for a specific device
2017-09-15 14:12:18 +01:00
Richard Hughes
97284b1ad8
Move the downgrade calculation to the daemon
2017-09-15 14:12:18 +01:00
Richard Hughes
68982c6624
Make FuDevice derive from FwupdDevice rather than FwupdResult
...
We're aiming for a model where devices can have multiple releases and we can
nuke FwupdResult completely.
2017-09-15 14:12:18 +01:00
Richard Hughes
b3ca245b74
Move the release trust information to FwupdRelease
...
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 latter, as you could have a .cab file with multiple versions of the
firmware and only the first being signed.
2017-09-15 11:31:01 +01:00
Richard Hughes
30dbf0d7d0
Remove the UniqueID property
...
This was only ever added for gnome-software, and is too inflexible for anything
else. It turns out we don't even need it in GNOME, as we can construct a
suitable ID ourselves using the existing values.
It was also ambiguous whether the unique ID was in reference to the device
or release -- and for gnome-software we need both.
2017-09-13 15:28:33 +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
Richard Hughes
48ad97fd61
Add a human-readable title for each remote
...
This allows us to show something useful in a GUI.
2017-09-10 09:08:32 +01:00
Richard Hughes
b3c13461e9
trivial: Use the error domain from libfwupd
...
This means we don't need to convert the error code in the dfu plugin.
2017-09-08 13:33:34 +01:00
Richard Hughes
b4fd0dfd7d
Move deprecated symbols to a new header
...
This does two things:
* Allows new users of the library to see only the supported symbols
* Allows us to ensure we're not using deprecated API internally
I can also use this in gnome-software in CI to make sure we're not using
deprecated API too. I don't think we're ready for a soname bump so we have to
hang on to the deprecated code for now.
2017-09-08 13:31:01 +01:00
Richard Hughes
a6bd5580d3
Add ModifyRemote as an easy way to enable and disable remotes like the LVFS
...
For example:
$ fwupdmgr modify-remote lvfs-testing Enabled true
2017-09-07 23:02:58 +01:00
Richard Hughes
ad1d9b1769
trivial: Fix a tiny leak in FwupdRemote
2017-08-31 20:07:06 +01:00