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.

Hierarchy

hierarchy this FuContext ancestor_0 GObject ancestor_0--this

Ancestors

  • GObject

Constructors

fu_context_new

Creates a new FuContext.

Available since: 1.6.0

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_level

Gets the system battery level in percent.

Available since: 1.6.0

fu_context_get_battery_state

Gets if the system is on battery power, e.g. UPS or laptop battery.

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_firmware_gtype_by_id

Returns the GType using the firmware id.

Available since: 1.6.0

fu_context_get_firmware_gtype_ids

Returns all the firmware GType IDs.

Available since: 1.6.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.

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_smbios_data

Gets a hardware SMBIOS data.

Available since: 1.6.0

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_smbios_string

Gets a hardware SMBIOS string.

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_guid

Finds out if a hardware GUID exists.

Available since: 1.6.0

fu_context_load_hwinfo

Loads all hardware information parts of the context.

Available since: 1.6.0

fu_context_load_quirks

Loads all quirks into the context.

Available since: 1.6.0

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_security_changed

Informs the daemon that the HSI state may have changed.

Available since: 1.6.0

fu_context_set_battery_level

Sets the system battery level in percent.

Available since: 1.6.0

fu_context_set_battery_state

Sets if the system is on battery power, e.g. UPS or laptop battery.

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_compile_versions

Sets the compile time versions for a plugin.

Available since: 1.6.0

fu_context_set_runtime_versions

Sets the runtime versions for a plugin.

Available since: 1.6.0

Properties

FwupdPlugin.Context:battery-level
No description available.
FwupdPlugin.Context:battery-state
No description available.
FwupdPlugin.Context:battery-threshold
No description available.

Signals

FwupdPlugin.Context::security-changed
No description available.

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.

Available since: 1.6.0