Class
FwupdBiosSetting
Description [src]
class Fwupd.BiosSetting : GObject.Object {
parent_instance: GObject
}
A BIOS setting that represents a setting in the firmware.
Instance methods
fwupd_bios_setting_add_possible_value
Adds a possible value to the attribute. This indicates one of the values the kernel driver will accept from userspace.
Available since: 1.8.4
fwupd_bios_setting_get_current_value
Gets the string representation of the current_value stored in an attribute from the kernel. This value is cached; so changing it outside of fwupd may may put it out of sync.
Available since: 1.8.4
fwupd_bios_setting_get_description
Gets the attribute description which is provided by some drivers to explain what they change.
Available since: 1.8.4
fwupd_bios_setting_get_id
Gets the unique attribute identifier for this attribute/driver.
Available since: 1.8.4
fwupd_bios_setting_get_kind
Gets the BIOS setting type used by the kernel interface.
Available since: 1.8.4
fwupd_bios_setting_get_lower_bound
Gets the lower bound for integer attributes or minimum length for string attributes.
Available since: 1.8.4
fwupd_bios_setting_get_path
Gets the path for the driver providing the attribute.
Available since: 1.8.4
fwupd_bios_setting_get_possible_values
Find all possible values for an enumeration attribute.
Available since: 1.8.4
fwupd_bios_setting_get_scalar_increment
Gets the scalar increment used for integer attributes.
Available since: 1.8.4
fwupd_bios_setting_get_upper_bound
Gets the upper bound for integer attributes or maximum length for string attributes.
Available since: 1.8.4
fwupd_bios_setting_has_possible_value
Finds out if a specific possible value was added to the attribute.
Available since: 1.8.4
fwupd_bios_setting_map_possible_value
Attempts to map a user provided string into strings that a FwupdBiosSetting
can
support. The following heuristics are used:
- Ignore case sensitivity
- Map obviously “positive” phrases into a value that turns on the FwupdBiosSetting
- Map obviously “negative” phrases into a value that turns off the FwupdBiosSetting
.
Available since: 1.8.4
fwupd_bios_setting_set_current_value
Sets the string stored in an attribute. This doesn’t change the representation in the kernel.
Available since: 1.8.4
fwupd_bios_setting_set_id
Sets the unique attribute identifier for this attribute.
Available since: 1.8.4
fwupd_bios_setting_set_kind
Sets the BIOS setting type used by the kernel interface.
Available since: 1.8.4
fwupd_bios_setting_set_lower_bound
Sets the lower bound used for BIOS integer attributes or max length for string attributes.
Available since: 1.8.4
fwupd_bios_setting_set_name
Sets the attribute name provided by a kernel driver.
Available since: 1.8.4
fwupd_bios_setting_set_read_only
Configures whether an attribute is read only maximum length for string attributes.
Available since: 1.8.4
fwupd_bios_setting_set_scalar_increment
Sets the scalar increment used for BIOS integer attributes.
Available since: 1.8.4
fwupd_bios_setting_set_upper_bound
Sets the upper bound used for BIOS integer attributes or max length for string attributes.
Available since: 1.8.4
fwupd_bios_setting_write_value
Writes a new value into the setting if it is different from the current value.
Available since: 1.9.4
Class structure
struct FwupdBiosSettingClass {
GObjectClass parent_class;
gboolean (* write_value) (
FwupdBiosSetting* self,
const gchar* value,
GError** error
);
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. | |
write_value |
|
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. |
Virtual methods
Fwupd.BiosSettingClass.write_value
Writes a new value into the setting if it is different from the current value.
Available since: 1.9.4
Functions
fwupd_bios_setting_array_from_variant
Creates an array of new bios settings using serialized data.
Available since: 1.8.4
fwupd_bios_setting_from_variant
Creates a new bios setting using serialized data.
Available since: 1.8.4