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_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.
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.
since: 1.6.0
fu_context_add_udev_subsystem
Registers the udev subsystem to be watched by the daemon.
since: 1.6.0
fu_context_get_bios_setting_pending_reboot
Determine if updates to BIOS settings are pending until next boot.
since: 1.8.4
fu_context_get_bios_settings
Returns all the firmware attributes defined in the system.
since: 1.8.4
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.
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.
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.
since: 1.6.0
fu_context_get_power_state
Gets if the system is on battery power, e.g. UPS or laptop battery.
since: 1.8.11
fu_context_get_smbios_integer
Reads an integer value from the SMBIOS string table of a specific structure.
since: 1.6.0
fu_context_has_hwid_flag
Returns if a HwId custom flag exists, typically added from a DMI quirk.
since: 1.7.2
fu_context_lookup_quirk_by_id
Looks up an entry in the hardware database using a string value.
since: 1.6.0
fu_context_lookup_quirk_by_id_iter
Looks up all entries in the hardware database using a GUID value.
since: 1.6.0
fu_context_reload_bios_settings
Refreshes the list of firmware attributes on the system.
since: 1.8.4
fu_context_set_power_state
Sets if the system is on battery power, e.g. UPS or laptop battery.
since: 1.8.11
Signals
FwupdPlugin.Context::security-changed
The ::security-changed signal is emitted when some system state has changed that could have affected the security level.
since: 1.6.0
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct FwupdPluginContextClass {
GObjectClass parent_class;
void (* security_changed) (
FuContext* self
);
}
Class members
parent_class: GObjectClass
- No description available.
security_changed: void (* security_changed) ( FuContext* self )
- No description available.
Virtual methods
FwupdPlugin.ContextClass.security_changed
Informs the daemon that the HSI state may have changed.
since: 1.6.0