Class
FwupdPluginContext
Description [src]
class FwupdPlugin.Context : GObject.Object
{
/* No available fields */
}
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_default_esp
Finds the volume that represents the ESP that plugins should nominally use for accessing storing data.
since: 2.0.0
fu_context_get_esp_location
Retrieves the user’s desired ESP (EFI System Partition) location for the given FuContext
.
fu_context_get_esp_volume_by_hard_drive_device_path
Gets a volume that matches the EFI device path.
since: 2.0.0
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_plugin_names_for_udev_subsystem
Gets the plugins which registered for a specific subsystem.
since: 1.9.3
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_esp_location
Sets the user’s desired ESP (EFI System Partition) location for the given FuContext
.
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::housekeeping
The ::housekeeping signal is emitted when helper objects should do house-keeping actions when the daemon is idle.
since: 2.0.0
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
);
void (* housekeeping) (
FuContext* self
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
security_changed: void (* security_changed) ( FuContext* self )
No description available.
housekeeping: void (* housekeeping) ( FuContext* self )
No description available.
Virtual methods
FwupdPlugin.ContextClass.housekeeping
Performs any housekeeping maintenance when the daemon is idle.
since: 2.0.0
FwupdPlugin.ContextClass.security_changed
Informs the daemon that the HSI state may have changed.
since: 1.6.0