Class
FwupdDevice
Description [src]
class Fwupd.Device : GObject.Object {
parent_instance: GObject
}
A physical device on the host with optionally updatable firmware.
See also: FwupdRelease
Functions
fwupd_device_array_ensure_parents
Sets the parent object on all devices in the array using the parent ID.
Available since: 1.3.7
fwupd_device_array_filter_flags
Creates an array of new devices that match using fwupd_device_match_flags().
Available since: 1.9.3
fwupd_device_array_from_variant
Creates an array of new devices using serialized data.
Available since: 1.2.10
fwupd_device_flag_from_string
Converts a string to an enumerated device flag.
Available since: 0.7.0
fwupd_device_id_is_valid
Checks the string is a valid non-partial device ID. It is important to note
that the wildcard ID of *
is not considered a valid ID in this function and
the client must check for this manually if this should be allowed.
Available since: 1.4.1
fwupd_device_problem_from_string
Converts a string to a enumerated device inhibit kind.
Available since: 1.8.1
Instance methods
fwupd_device_add_child
Adds a child device. An child device is logically linked to the primary device in some way.
Available since: 1.5.1
fwupd_device_add_instance_id
Adds the instance ID if it does not already exist.
Available since: 1.2.5
fwupd_device_add_request_flag
Adds a specific device request flag to the device.
Available since: 1.9.10
fwupd_device_get_battery_threshold
Returns the battery threshold under which a firmware update cannot be performed.
Available since: 1.8.1
fwupd_device_get_children
Gets the device children. These can only be assigned using fwupd_device_set_parent().
Available since: 1.3.7
fwupd_device_get_composite_id
Gets the composite ID, falling back to the device ID if unset.
Available since: 1.6.0
fwupd_device_get_description
Gets the device description in AppStream markup format.
Available since: 0.9.3
fwupd_device_get_flashes_left
Gets the number of flash cycles left on the device.
Available since: 0.9.3
fwupd_device_get_install_duration
Gets the time estimate for firmware installation (in seconds)
Available since: 1.1.3
fwupd_device_get_issues
Gets the list of issues currently affecting this device.
Available since: 1.7.6
fwupd_device_get_percentage
Returns the percentage completion of the device.
Available since: 1.8.11
fwupd_device_get_protocol
Gets the protocol name that the device uses for updating.
Available since: 1.3.6
Deprecated since: 1.5.8
fwupd_device_get_vendor_id
Gets the combined device vendor ID.
Available since: 0.9.4
Deprecated since: 1.5.5
fwupd_device_get_version_bootloader_raw
Gets the bootloader version of firmware the device will accept in raw format.
Available since: 1.4.0
fwupd_device_get_version_build_date
Gets the date when the firmware was built.
Available since: 1.6.2
fwupd_device_get_version_lowest
Gets the lowest version of firmware the device will accept.
Available since: 0.9.3
fwupd_device_get_version_lowest_raw
Gets the lowest version of firmware the device will accept in raw format.
Available since: 1.4.0
fwupd_device_get_version_raw
Gets the raw version number from the hardware before converted to a string.
Available since: 1.3.6
fwupd_device_has_checksum
Finds out if the device has this specific checksum.
Available since: 1.8.7
fwupd_device_has_instance_id
Finds out if the device has this specific instance ID.
Available since: 1.2.5
fwupd_device_has_problem
Finds if the device has a specific device problem kind.
Available since: 1.8.1
fwupd_device_has_protocol
Finds out if the device has this specific protocol name.
Available since: 1.5.8
fwupd_device_has_request_flag
Finds if the device has a specific device request flag.
Available since: 1.9.10
fwupd_device_has_vendor_id
Finds out if the device has this specific vendor ID.
Available since: 1.5.5
fwupd_device_incorporate
Copy all properties from the donor object if they have not already been set.
Available since: 1.1.0
fwupd_device_remove_problem
Removes a specific device problem kind from the device.
Available since: 1.8.1
fwupd_device_remove_request_flag
Removes a specific device request flag from the device.
Available since: 1.9.10
fwupd_device_set_battery_level
Sets the battery level, or FWUPD_BATTERY_LEVEL_INVALID
.
Available since: 1.8.1
fwupd_device_set_battery_threshold
Sets the battery level, or FWUPD_BATTERY_LEVEL_INVALID
for the default.
Available since: 1.8.1
fwupd_device_set_composite_id
Sets the composite ID, which is usually a SHA1 hash of a grandparent or parent device.
Available since: 1.6.0
fwupd_device_set_flashes_left
Sets the number of flash cycles left on the device.
Available since: 0.9.3
fwupd_device_set_install_duration
Sets the time estimate for firmware installation (in seconds)
Available since: 1.1.3
fwupd_device_set_protocol
Sets the protocol name that is used to update the device.
Available since: 1.3.6
Deprecated since: 1.5.8
fwupd_device_set_version_bootloader_raw
Sets the raw bootloader version number from the hardware before converted to a string.
Available since: 1.4.0
fwupd_device_set_version_build_date
Sets the date when the firmware was built.
Available since: 1.6.2
fwupd_device_set_version_lowest
Sets the lowest version of firmware the device will accept.
Available since: 0.9.3
fwupd_device_set_version_lowest_raw
Sets the raw lowest version number from the hardware before converted to a string.
Available since: 1.4.0
fwupd_device_set_version_raw
Sets the raw version number from the hardware before converted to a string.
Available since: 1.3.6
fwupd_device_to_json_full
Adds a fwupd device to a JSON builder Optionally provides additional data based upon flags.
Available since: 1.8.2
fwupd_device_to_variant_full
Serialize the device data. Optionally provides additional data based upon flags.
Available since: 1.1.2
Methods inherited from GObject (42)
Properties
Fwupd.Device:problems
The problems with the device that the user could fix, e.g. “lid open”.
Available since: 1.8.1
Signals
Signals inherited from GObject (1)
GObject.Object::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 FwupdDeviceClass {
GObjectClass parent_class;
void (* _fwupd_reserved1) (
void
);
void (* _fwupd_reserved2) (
void
);
void (* _fwupd_reserved3) (
void
);
void (* _fwupd_reserved4) (
void
);
void (* _fwupd_reserved5) (
void
);
void (* _fwupd_reserved6) (
void
);
void (* _fwupd_reserved7) (
void
);
}
Class members
parent_class |
|
No description available. | |
_fwupd_reserved1 |
|
No description available. | |
_fwupd_reserved2 |
|
No description available. | |
_fwupd_reserved3 |
|
No description available. | |
_fwupd_reserved4 |
|
No description available. | |
_fwupd_reserved5 |
|
No description available. | |
_fwupd_reserved6 |
|
No description available. | |
_fwupd_reserved7 |
|
No description available. |