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.
since: 1.3.7
fwupd_device_array_from_variant
Creates an array of new devices using serialized data.
since: 1.2.10
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.
since: 1.4.1
fwupd_device_problem_from_string
Converts a string to a enumerated device inhibit kind.
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.
since: 1.5.1
fwupd_device_get_battery_threshold
Returns the battery threshold under which a firmware update cannot be performed.
since: 1.8.1
fwupd_device_get_children
Gets the device children. These can only be assigned using fwupd_device_set_parent().
since: 1.3.7
fwupd_device_get_composite_id
Gets the composite ID, falling back to the device ID if unset.
since: 1.6.0
fwupd_device_get_install_duration
Gets the time estimate for firmware installation (in seconds)
since: 1.1.3
fwupd_device_get_protocol
Gets the protocol name that the device uses for updating.
deprecated: 1.5.8 since: 1.3.6
fwupd_device_get_version_bootloader_raw
Gets the bootloader version of firmware the device will accept in raw format.
since: 1.4.0
fwupd_device_get_version_lowest
Gets the lowest version of firmware the device will accept.
since: 0.9.3
fwupd_device_get_version_lowest_raw
Gets the lowest version of firmware the device will accept in raw format.
since: 1.4.0
fwupd_device_get_version_raw
Gets the raw version number from the hardware before converted to a string.
since: 1.3.6
fwupd_device_incorporate
Copy all properties from the donor object if they have not already been set.
since: 1.1.0
fwupd_device_set_battery_threshold
Sets the battery level, or FWUPD_BATTERY_LEVEL_INVALID
for the default.
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.
since: 1.6.0
fwupd_device_set_install_duration
Sets the time estimate for firmware installation (in seconds)
since: 1.1.3
fwupd_device_set_protocol
Sets the protocol name that is used to update the device.
deprecated: 1.5.8 since: 1.3.6
fwupd_device_set_version_bootloader_raw
Sets the raw bootloader version number from the hardware before converted to a string.
since: 1.4.0
fwupd_device_set_version_lowest
Sets the lowest version of firmware the device will accept.
since: 0.9.3
fwupd_device_set_version_lowest_raw
Sets the raw lowest version number from the hardware before converted to a string.
since: 1.4.0
fwupd_device_set_version_raw
Sets the raw version number from the hardware before converted to a string.
since: 1.3.6
fwupd_device_to_json_full
Adds a fwupd device to a JSON builder Optionally provides additional data based upon flags.
since: 1.8.2
fwupd_device_to_variant_full
Serialize the device data. Optionally provides additional data based upon flags.
since: 1.1.2
Properties
Fwupd.Device:problems
The problems with the device that the user could fix, e.g. “lid open”.
since: 1.8.1
Signals
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 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: GObjectClass
- No description available.
_fwupd_reserved1: void (* _fwupd_reserved1) ( void )
- No description available.
_fwupd_reserved2: void (* _fwupd_reserved2) ( void )
- No description available.
_fwupd_reserved3: void (* _fwupd_reserved3) ( void )
- No description available.
_fwupd_reserved4: void (* _fwupd_reserved4) ( void )
- No description available.
_fwupd_reserved5: void (* _fwupd_reserved5) ( void )
- No description available.
_fwupd_reserved6: void (* _fwupd_reserved6) ( void )
- No description available.
_fwupd_reserved7: void (* _fwupd_reserved7) ( void )
- No description available.