Top | ![]() |
![]() |
![]() |
![]() |
gchar *
fwupd_device_to_string (FwupdDevice *device
);
Builds a text representation of the object.
Since: 0.9.3
const gchar *
fwupd_device_get_id (FwupdDevice *device
);
Gets the ID.
Since: 0.9.3
void fwupd_device_set_id (FwupdDevice *device
,const gchar *id
);
Sets the ID.
Since: 0.9.3
const gchar *
fwupd_device_get_parent_id (FwupdDevice *device
);
Gets the ID.
Since: 1.0.8
void fwupd_device_set_parent_id (FwupdDevice *device
,const gchar *parent_id
);
Sets the parent ID.
Since: 1.0.8
FwupdDevice *
fwupd_device_get_parent (FwupdDevice *device
);
Gets the parent.
Since: 1.0.8
void fwupd_device_set_parent (FwupdDevice *device
,FwupdDevice *parent
);
Sets the parent. Only used internally.
Since: 1.0.8
const gchar *
fwupd_device_get_name (FwupdDevice *device
);
Gets the device name.
Since: 0.9.3
void fwupd_device_set_name (FwupdDevice *device
,const gchar *name
);
Sets the device name.
Since: 0.9.3
const gchar *
fwupd_device_get_serial (FwupdDevice *device
);
Gets the serial number for the device.
Since: 1.1.2
void fwupd_device_set_serial (FwupdDevice *device
,const gchar *serial
);
Sets the serial number for the device.
Since: 1.1.2
const gchar *
fwupd_device_get_summary (FwupdDevice *device
);
Gets the device summary.
Since: 0.9.3
void fwupd_device_set_summary (FwupdDevice *device
,const gchar *summary
);
Sets the device summary.
Since: 0.9.3
const gchar *
fwupd_device_get_description (FwupdDevice *device
);
Gets the device description in AppStream markup format.
Since: 0.9.3
void fwupd_device_set_description (FwupdDevice *device
,const gchar *description
);
Sets the device description.
Since: 0.9.3
const gchar *
fwupd_device_get_version (FwupdDevice *device
);
Gets the device version.
Since: 0.9.3
void fwupd_device_set_version (FwupdDevice *device
,const gchar *version
);
Sets the device version.
Since: 0.9.3
const gchar *
fwupd_device_get_version_lowest (FwupdDevice *device
);
Gets the lowest version of firmware the device will accept.
Since: 0.9.3
void fwupd_device_set_version_lowest (FwupdDevice *device
,const gchar *version_lowest
);
Sets the lowest version of firmware the device will accept.
Since: 0.9.3
const gchar *
fwupd_device_get_version_bootloader (FwupdDevice *device
);
Gets the version of the bootloader.
Since: 0.9.3
void fwupd_device_set_version_bootloader (FwupdDevice *device
,const gchar *version_bootloader
);
Sets the bootloader version.
Since: 0.9.3
FwupdVersionFormat
fwupd_device_get_version_format (FwupdDevice *device
);
Gets the update state.
Since: 1.2.9
void fwupd_device_set_version_format (FwupdDevice *device
,FwupdVersionFormat version_format
);
Sets the update state.
Since: 1.2.9
guint32
fwupd_device_get_flashes_left (FwupdDevice *device
);
Gets the number of flash cycles left on the device
Since: 0.9.3
void fwupd_device_set_flashes_left (FwupdDevice *device
,guint32 flashes_left
);
Sets the number of flash cycles left on the device
Since: 0.9.3
guint32
fwupd_device_get_install_duration (FwupdDevice *device
);
Gets the time estimate for firmware installation (in seconds)
Since: 1.1.3
void fwupd_device_set_install_duration (FwupdDevice *device
,guint32 duration
);
Sets the time estimate for firmware installation (in seconds)
Since: 1.1.3
guint64
fwupd_device_get_flags (FwupdDevice *device
);
Gets the device flags.
Since: 0.9.3
void fwupd_device_set_flags (FwupdDevice *device
,guint64 flags
);
Sets the device flags.
Since: 0.9.3
void fwupd_device_add_flag (FwupdDevice *device
,FwupdDeviceFlags flag
);
Adds a specific device flag to the device.
Since: 0.9.3
void fwupd_device_remove_flag (FwupdDevice *device
,FwupdDeviceFlags flag
);
Removes a specific device flag from the device.
Since: 0.9.3
gboolean fwupd_device_has_flag (FwupdDevice *device
,FwupdDeviceFlags flag
);
Finds if the device has a specific device flag.
Since: 0.9.3
guint64
fwupd_device_get_created (FwupdDevice *device
);
Gets when the device was created.
Since: 0.9.3
void fwupd_device_set_created (FwupdDevice *device
,guint64 created
);
Sets when the device was created.
Since: 0.9.3
guint64
fwupd_device_get_modified (FwupdDevice *device
);
Gets when the device was modified.
Since: 0.9.3
void fwupd_device_set_modified (FwupdDevice *device
,guint64 modified
);
Sets when the device was modified.
Since: 0.9.3
GPtrArray *
fwupd_device_get_checksums (FwupdDevice *device
);
Gets the device checksums.
Since: 0.9.3
void fwupd_device_add_checksum (FwupdDevice *device
,const gchar *checksum
);
Sets the device checksum.
Since: 0.9.3
const gchar *
fwupd_device_get_plugin (FwupdDevice *device
);
Gets the plugin that created the device.
Since: 1.0.0
void fwupd_device_set_plugin (FwupdDevice *device
,const gchar *plugin
);
Sets the plugin that created the device.
Since: 1.0.0
const gchar *
fwupd_device_get_vendor (FwupdDevice *device
);
Gets the device vendor.
Since: 0.9.3
void fwupd_device_set_vendor (FwupdDevice *device
,const gchar *vendor
);
Sets the device vendor.
Since: 0.9.3
const gchar *
fwupd_device_get_vendor_id (FwupdDevice *device
);
Gets the device vendor ID.
Since: 0.9.4
void fwupd_device_set_vendor_id (FwupdDevice *device
,const gchar *vendor_id
);
Sets the device vendor ID.
Since: 0.9.4
void fwupd_device_add_guid (FwupdDevice *device
,const gchar *guid
);
Adds the GUID if it does not already exist.
Since: 0.9.3
gboolean fwupd_device_has_guid (FwupdDevice *device
,const gchar *guid
);
Finds out if the device has this specific GUID.
Since: 0.9.3
GPtrArray *
fwupd_device_get_guids (FwupdDevice *device
);
Gets the GUIDs.
Since: 0.9.3
const gchar *
fwupd_device_get_guid_default (FwupdDevice *device
);
Gets the default GUID.
Since: 0.9.3
void fwupd_device_add_instance_id (FwupdDevice *device
,const gchar *instance_id
);
Adds the InstanceID if it does not already exist.
Since: 1.2.5
gboolean fwupd_device_has_instance_id (FwupdDevice *device
,const gchar *instance_id
);
Finds out if the device has this specific InstanceID.
Since: 1.2.5
GPtrArray *
fwupd_device_get_instance_ids (FwupdDevice *device
);
Gets the InstanceIDs.
Since: 1.2.5
void fwupd_device_add_icon (FwupdDevice *device
,const gchar *icon
);
Adds the icon name if it does not already exist.
Since: 0.9.8
GPtrArray *
fwupd_device_get_icons (FwupdDevice *device
);
Gets the icon names to use for the device.
NOTE: Icons specified without a full path are stock icons and should be loaded from the users icon theme.
Since: 0.9.8
FwupdUpdateState
fwupd_device_get_update_state (FwupdDevice *device
);
Gets the update state.
Since: 0.9.8
void fwupd_device_set_update_state (FwupdDevice *device
,FwupdUpdateState update_state
);
Sets the update state.
Since: 0.9.8
const gchar *
fwupd_device_get_update_error (FwupdDevice *device
);
Gets the update error.
Since: 0.9.8
void fwupd_device_set_update_error (FwupdDevice *device
,const gchar *update_error
);
Sets the update error.
Since: 0.9.8
const gchar *
fwupd_device_get_update_message (FwupdDevice *device
);
Gets the update message.
Since: 1.2.4
void fwupd_device_set_update_message (FwupdDevice *device
,const gchar *update_message
);
Sets the update message.
Since: 1.2.4
void fwupd_device_add_release (FwupdDevice *device
,FwupdRelease *release
);
Adds a release for this device.
Since: 0.9.8
GPtrArray *
fwupd_device_get_releases (FwupdDevice *device
);
Gets all the releases for this device.
Since: 0.9.8
FwupdRelease *
fwupd_device_get_release_default (FwupdDevice *device
);
Gets the default release for this device.
Since: 0.9.8
gint fwupd_device_compare (FwupdDevice *device1
,FwupdDevice *device2
);
Comparison function for comparing two FwupdDevice objects.
Since: 1.1.1