Class
FwupdDevice
Description [src]
class Fwupd.Device : GObject.Object
implements Fwupd.Codec {
/* No available fields */
}
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_filter_flags
Creates an array of new devices that match using fwupd_device_match_flags().
since: 1.9.3
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_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_remove_request_flag
Removes a specific device request flag from the device.
since: 1.9.10
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_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
Methods inherited from FwupdCodec (8)
fwupd_codec_add_string
Converts an object that implements FwupdCodec
to a debug string, appending it to str
.
since: 2.0.0
fwupd_codec_from_json
Converts an object that implements FwupdCodec
from a JSON object.
since: 2.0.0
fwupd_codec_from_json_string
Converts an object that implements FwupdCodec
from a JSON string.
since: 2.0.0
fwupd_codec_from_variant
Converts an object that implements FwupdCodec
from a GVariant
value.
since: 2.0.0
fwupd_codec_to_json
Converts an object that implements FwupdCodec
to a JSON builder object.
since: 2.0.0
fwupd_codec_to_json_string
Converts an object that implements FwupdCodec
to a JSON string.
since: 2.0.0
fwupd_codec_to_string
Converts an object that implements FwupdCodec
to a debug string.
since: 2.0.0
fwupd_codec_to_variant
Converts an object that implements FwupdCodec
to a GVariant
.
since: 2.0.0
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
);
}
No description available.
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.