Class
FwupdPluginContext
Description [src]
class FwupdPlugin.Context : GObject.Object {
parent_instance: GObject
}
A context that represents the shared system state. This object is shared between the engine, the plugins and the devices.
Instance methods
fu_context_add_compile_version
Sets a compile-time version of a specific dependency.
Available since: 1.6.0
fu_context_add_firmware_gtype
Adds a firmware GType
which is used when creating devices. If id
is not
specified then it is guessed using the GType
name.
Available since: 1.6.0
fu_context_add_quirk_key
Adds a possible quirk key. If added by a plugin it should be namespaced using the plugin name, where possible.
Available since: 1.6.0
fu_context_add_runtime_version
Sets a runtime version of a specific dependency.
Available since: 1.6.0
fu_context_add_udev_subsystem
Registers the udev subsystem to be watched by the daemon.
Available since: 1.6.0
fu_context_get_battery_threshold
Gets the system battery threshold in percent.
Available since: 1.6.0
fu_context_get_bios_setting
Finds out if a system supports a given BIOS setting.
Available since: 1.8.4
fu_context_get_bios_setting_pending_reboot
Determine if updates to BIOS settings are pending until next boot.
Available since: 1.8.4
fu_context_get_bios_settings
Returns all the firmware attributes defined in the system.
Available since: 1.8.4
fu_context_get_fdt
Gets and parses the system FDT, aka. the Flat Device Tree.
Available since: 1.8.10
fu_context_get_hwid_guids
Returns all the HWIDs defined in the system. All hardware IDs on a
specific system can be shown using the fwupdmgr hwids
command.
Available since: 1.6.0
fu_context_get_hwid_replace_value
Gets the replacement value for a specific key. All hardware IDs on a
specific system can be shown using the fwupdmgr hwids
command.
Available since: 1.6.0
fu_context_get_hwid_value
Gets the cached value for one specific key that is valid ASCII and suitable for display.
Available since: 1.6.0
fu_context_get_plugin_names_for_udev_subsystem
Gets the plugins which registered for a specific subsystem.
Available since: 1.9.3
fu_context_get_power_state
Gets if the system is on battery power, e.g. UPS or laptop battery.
Available since: 1.8.11
fu_context_get_smbios_data
Gets all hardware SMBIOS data for a specific type.
Available since: 1.9.8
fu_context_get_smbios_integer
Reads an integer value from the SMBIOS string table of a specific structure.
Available since: 1.6.0
fu_context_get_udev_subsystems
Gets the udev subsystems required by all plugins.
Available since: 1.6.0
fu_context_has_hwid_flag
Returns if a HwId custom flag exists, typically added from a DMI quirk.
Available since: 1.7.2
fu_context_lookup_quirk_by_id
Looks up an entry in the hardware database using a string value.
Available since: 1.6.0
fu_context_lookup_quirk_by_id_iter
Looks up all entries in the hardware database using a GUID value.
Available since: 1.6.0
fu_context_reload_bios_settings
Refreshes the list of firmware attributes on the system.
Available since: 1.8.4
fu_context_security_changed
Informs the daemon that the HSI state may have changed.
Available since: 1.6.0
fu_context_set_battery_threshold
Sets the system battery threshold in percent.
Available since: 1.6.0
fu_context_set_power_state
Sets if the system is on battery power, e.g. UPS or laptop battery.
Available since: 1.8.11
Properties
FwupdPlugin.Context:battery-threshold
The system battery threshold in percent.
Available since: 1.6.0
Signals
FwupdPlugin.Context::security-changed
The ::security-changed signal is emitted when some system state has changed that could have affected the security level.
Available since: 1.6.0
Class structure
struct FwupdPluginContextClass {
GObjectClass parent_class;
void (* security_changed) (
FuContext* self
);
}
Class members
parent_class |
|
No description available. | |
security_changed |
|
No description available. |
Virtual methods
FwupdPlugin.ContextClass.security_changed
Informs the daemon that the HSI state may have changed.
Available since: 1.6.0