Class
FwupdPluginPlugin
Description [src]
class FwupdPlugin.Plugin : Fwupd.Plugin {
parent_instance: FwupdPlugin
}
A plugin which is used by fwupd to enumerate and update devices.
See also: FuDevice
, FwupdPlugin
Instance methods
fu_plugin_add_device_gtype
Adds the device GType
which is used when creating devices.
Available since: 1.6.0
fu_plugin_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.3.3
fu_plugin_add_report_metadata
Sets any additional metadata to be included in the firmware report to aid debugging problems.
Available since: 1.0.4
fu_plugin_add_rule
If the plugin name is found, the rule will be used to sort the plugin list,
for example the plugin specified by name
will be ordered after this plugin
when FU_PLUGIN_RULE_RUN_AFTER
is used.
Available since: 1.0.0
fu_plugin_add_udev_subsystem
Registers the udev subsystem to be watched by the daemon.
Available since: 1.6.2
fu_plugin_device_add
Asks the daemon to add a device to the exported list. If this device ID has already been added by a different plugin then this request will be ignored.
Available since: 0.8.0
fu_plugin_device_register
Registers the device with other plugins so they can set metadata.
Available since: 0.9.7
fu_plugin_device_remove
Asks the daemon to remove a device from the exported list.
Available since: 0.8.0
fu_plugin_get_config_value
Return the value of a key if it’s been configured.
Available since: 1.0.6
fu_plugin_get_config_value_boolean
Return the boolean value of a key if it’s been configured.
Available since: 1.4.0
fu_plugin_get_data
Gets the per-plugin allocated private data. This will return NULL
unless
fu_plugin_alloc_data()
has been called by the plugin.
Available since: 0.8.0
fu_plugin_get_devices
Returns all devices added by the plugin using fu_plugin_device_add()
and
not yet removed with fu_plugin_device_remove()
.
Available since: 1.5.6
fu_plugin_get_order
Gets the plugin order, where higher numbers are run after lower numbers.
Available since: 1.0.0
fu_plugin_get_priority
Gets the plugin priority, where higher numbers are better.
Available since: 1.1.1
fu_plugin_get_report_metadata
Returns the list of additional metadata to be added when filing a report.
Available since: 1.0.4
fu_plugin_get_rules
Gets the plugin IDs that should be run after this plugin.
Available since: 1.0.0
fu_plugin_has_custom_flag
Returns if a per-plugin HwId custom flag exists, typically added from a DMI quirk.
Available since: 1.3.1
fu_plugin_runner_add_security_attrs
Runs the add_security_attrs()
routine for the plugin.
Available since: 1.5.0
fu_plugin_runner_backend_device_added
Call the backend_device_added routine for the plugin.
Available since: 1.5.6
fu_plugin_runner_backend_device_changed
Call the backend_device_changed routine for the plugin.
Available since: 1.5.6
fu_plugin_runner_coldplug_cleanup
Runs the coldplug_cleanup routine for the plugin.
Available since: 0.8.0
fu_plugin_runner_coldplug_prepare
Runs the coldplug_prepare routine for the plugin.
Available since: 0.8.0
fu_plugin_runner_composite_cleanup
Runs the composite_cleanup routine for the plugin.
Available since: 1.0.9
fu_plugin_runner_composite_prepare
Runs the composite_prepare routine for the plugin.
Available since: 1.0.9
fu_plugin_runner_device_created
Call the device_created routine for the plugin.
Available since: 1.4.0
fu_plugin_runner_device_register
Call the device_registered routine for the plugin.
Available since: 0.9.7
fu_plugin_runner_device_removed
Call the device_removed routine for the plugin.
Available since: 1.1.2
fu_plugin_runner_write_firmware
Call into the plugin’s write firmware routine.
Available since: 1.7.0
fu_plugin_set_build_hash
Sets the plugin build hash, typically a SHA256 checksum. All plugins must set the correct checksum to avoid the daemon being marked as tainted.
Available since: 1.2.4
fu_plugin_set_order
Sets the plugin order, where higher numbers are run after lower numbers.
Available since: 1.0.0
fu_plugin_set_priority
Sets the plugin priority, where higher numbers are better.
Available since: 1.0.0
Signals
FwupdPlugin.Plugin::check-supported
FwupdPlugin.Plugin::config-changed
FwupdPlugin.Plugin::device-added
FwupdPlugin.Plugin::device-register
FwupdPlugin.Plugin::device-removed
FwupdPlugin.Plugin::rules-changed
Class structure
struct FwupdPluginPluginClass {
FwupdPluginClass parent_class;
void (* device_added) (
FuPlugin* self,
FuDevice* device
);
void (* device_removed) (
FuPlugin* self,
FuDevice* device
);
void (* status_changed) (
FuPlugin* self,
FwupdStatus status
);
void (* percentage_changed) (
FuPlugin* self,
guint percentage
);
void (* device_register) (
FuPlugin* self,
FuDevice* device
);
gboolean (* check_supported) (
FuPlugin* self,
const gchar* guid
);
void (* rules_changed) (
FuPlugin* self
);
void (* config_changed) (
FuPlugin* self
);
}
Class members
parent_class |
|
No description available. | |
device_added |
|
No description available. | |
device_removed |
|
No description available. | |
status_changed |
|
No description available. | |
percentage_changed |
|
No description available. | |
device_register |
|
No description available. | |
check_supported |
|
No description available. | |
rules_changed |
|
No description available. | |
config_changed |
|
No description available. |
Virtual methods
FwupdPlugin.PluginClass.check_supported
FwupdPlugin.PluginClass.config_changed
FwupdPlugin.PluginClass.device_added
FwupdPlugin.PluginClass.device_register
Registers the device with other plugins so they can set metadata.
Available since: 0.9.7
FwupdPlugin.PluginClass.device_removed
FwupdPlugin.PluginClass.percentage_changed
FwupdPlugin.PluginClass.rules_changed
FwupdPlugin.PluginClass.status_changed
Functions
fu_plugin_guess_name_from_fn
Tries to guess the name of the plugin from a filename.
Available since: 1.0.8