Richard Hughes
89d45a0d91
trivial: Standardize on introspection for @error and @cancellable
...
Also standarize on `Returns:` for the result.
2021-04-28 16:19:50 +01:00
Richard Hughes
52441f28a4
Allow objects to deserialize to XML
...
This makes a lot more sense; we can parse a firmware and export the same XML
we would use in a .builder.xml file. This allows us to two two things:
* Check we can round trip from XML -> binary -> XML
* Using a .builder.xml file we can check ->write() is endian safe
2021-03-15 12:07:30 +00:00
Richard Hughes
86c6c2d4a3
Add fu_firmware_set_version_raw()
...
A few plugins need this now, so move it into the base class.
2021-02-16 15:24:29 +00:00
Richard Hughes
b28e325339
trivial: Fix a buffer over-read when parsing corrupt SMBIOS data
2021-01-06 10:08:45 +00:00
Richard Hughes
cba9020eae
trivial: Fix a buffer over-read when parsing invalid SMBIOS data
2021-01-05 15:59:30 +00:00
Richard Hughes
338cab9e73
libfwupdplugin: Subclass FuFirmware in FuSmbios
...
This allows us to get fuzzing support for free.
2021-01-05 15:59:30 +00:00
Richard Hughes
64e9f6bd92
trivial: Fix up some NULL/FALSE confusion
2021-01-04 16:32:50 +00:00
Richard Hughes
6a489a9eaf
trivial: Add missing calls to g_return_val_if_fail()
2021-01-04 15:24:35 +00:00
Richard Hughes
01ba0c1eea
Set the SMBIOS chassis type to portable if a DT battery exists
...
This allows getting the HSI result on a Pinebook Pro laptop.
2020-11-07 08:15:20 +00:00
Richard Hughes
9f93b8bc66
trivial: Add fu_smbios_get_integer() helper
2020-10-18 20:24:10 +01:00
Richard Hughes
10c3fd2ff9
Support loading DMI data from DT systems
...
To do this with the existing codebase just fake the required SMBIOS structures.
2020-09-30 19:22:45 -05:00
Mario Limonciello
6b0e66354b
Convert libfwupdprivate to a shared library libfwupdplugin
2019-11-27 11:32:43 +00:00