Richard Hughes
2c553607e3
trivial: Fix gtk-doc wording of the device flags
2016-05-17 16:05:49 +01:00
Richard Hughes
99147f180b
Allow devices to have multiple assigned GUIDs
2016-05-17 09:35:04 +01:00
Richard Hughes
2fc5b88503
trivial: Only show the trust flags when there is an update
2016-05-13 14:48:20 +01:00
Mario Limonciello
a1cebd6e67
trivial: treat flashes_left as an unsigned integer
2016-05-11 15:21:22 -05:00
Mario Limonciello
71a5b98d30
Add support for a --force flag to override provider warnings
...
Under some circumstances a provider may want to prevent a user from
performing a flash without additional user interaction.
Providers can opt into this behavior by checking for
FWUPD_INSTALL_FLAG_FORCE in the update routine.
2016-05-10 15:41:16 -05:00
Mario Limonciello
f81f42a84c
Add support for a new device field "Flashes Left".
...
For devices that can report the number of flash cycles supported this field can
be used to prevent allowing the device to be flashed again.
2016-05-10 12:21:09 -05:00
Richard Hughes
662920ccf7
Show 'Unknow Device' in fwupdmgr when a device name is not set
2016-04-28 18:28:16 +01:00
Richard Hughes
8ca33784ec
Add device-added, device-removed and device-changed signals
...
This allows us to watch a specific device from client code without
re-requesting the device list on every Changed() signal.
2016-04-28 16:56:23 +01:00
Richard Hughes
1773e83060
Add fwupd_client_connect()
...
This exposes the client connection functionality so we can watch for signals
without being forced to perform an action beforehand.
2016-04-28 16:56:23 +01:00
Richard Hughes
4f4e1f3478
Add a 'supported' flag to the FuDevice
...
This is TRUE when the device has been found in the LVFS metadata.
2016-04-28 16:56:23 +01:00
Mario Limonciello
72ec147259
Re-order output of get-devices to be easier to read
2016-04-14 13:10:34 -05:00
Richard Hughes
5ac25f32e0
Generate gtk-doc documentation for libfwupd
2016-04-01 11:22:31 +01:00
Richard Hughes
0195b86a1f
trivial: Use g_autoptr() when checking for the bus
2016-04-01 08:09:26 +01:00
Mario Limonciello
e6e445ee4c
Validate that the dbus system bus is available before running libfwupd tests
...
In a chroot (or buildd) environment dbus isn't necessarily available so this
test will always fail.
2016-03-31 17:27:58 -05:00
Richard Hughes
88492a3cd0
trivial: Add some more self tests for enums
2016-03-31 11:16:56 +01:00
Richard Hughes
12de5d8f23
Return errors of the correct type when using libfwupd
...
This also allows us to skip errors when doing 'make check' in a VM with no
hardware devices.
2016-03-31 11:04:49 +01:00
Richard Hughes
5bf2837485
Add fwupd_result_has_device_flag()
2016-03-29 19:18:52 +01:00
Richard Hughes
1f2f6ce1cd
Allow other checksum kinds in FwupdResult
...
SHA1 is still the default, but others are allowed as well.
2016-03-18 12:33:47 +00:00
Richard Hughes
f3c1b56e73
trivial: Fix a potential crash spotted with clang
2016-03-18 12:33:47 +00:00
Richard Hughes
bdea096742
trivial: Add asserts for valid cancellables and errors in FwupdClient
2016-03-18 12:33:47 +00:00
Richard Hughes
9d8126ec63
libfwup: Fix up some NULL/FALSE confusion
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
ac97288ddb
Emit a FwupdClient::changed when the daemon emits this signal
2016-03-17 13:10:16 +00:00
Richard Hughes
0f41340740
Add FwupdClient to libfwupd
...
This is a client-side object which can get results from the daemon.
2016-03-17 10:04:19 +00:00
Richard Hughes
7542c53749
Add a self test framework for libfwupd
2016-03-17 09:59:20 +00:00
Richard Hughes
1aec596e5f
Add FwupdResult to libfwupd
...
This is a client-side object representing a result from the daemon.
2016-03-17 09:57:48 +00:00
Richard Hughes
b94f2f0488
Export FwupdUpdateFlags in libfwupd
2016-03-17 09:52:00 +00:00
Richard Hughes
a475eecda2
Export FwupdUpdateState in libfwupd
2016-03-17 09:48:34 +00:00
Richard Hughes
c1e3ded9a3
Add fwupd_trust_flag_to_string()
2016-03-17 09:43:04 +00:00
Richard Hughes
da887df142
trivial: Add note for next API break
2016-03-17 09:42:52 +00:00
Richard Hughes
2d041f370f
trivial: post branch version bump
2016-03-16 18:14:11 +00:00
Richard Hughes
23583f9d0b
Add fwupd_device_flag_to_string()
2016-03-15 16:31:47 +00:00
Richard Hughes
9a410ce459
Add an unlock method for devices
...
This is based on an idea from Mario Limonciello which can be used to enable a
PCI OptionROM read, or possibly enable ESRT functionality.
2016-03-02 10:17:02 +00:00
Richard Hughes
b75c92db47
Require AC power before scheduling some types of firmware update
...
Fixes half of https://github.com/hughsie/fwupd/issues/42
2016-02-20 20:25:56 +00:00
Richard Hughes
441785d215
trivial: Fix up some harmless lint, no code changes
2015-07-28 14:56:19 +01:00
Richard Hughes
d7dba98e68
Move boolean properties on the device to a set of flags
...
This is much less boilerplate and allows us to expand in the future.
2015-05-05 16:02:20 +01:00
Richard Hughes
046db72555
Add an UNKNOWN status so we can return meaningful enum values
2015-04-24 12:33:16 +01:00
Richard Hughes
8a08f9d8f3
Verify firmware if a detached signature is present
2015-04-14 15:41:44 +01:00
Richard Hughes
36a889034c
Add helper code to validate public key signatures
...
We'll use this in the future for checking device firmware.
2015-04-14 13:53:19 +01:00
Richard Hughes
f910ac9541
trivial: Also export the status enum codes
2015-03-19 10:54:06 +00:00
Richard Hughes
8645ec9ad5
Create a libfwupd shared library
2015-03-19 10:54:05 +00:00