Top | ![]() |
![]() |
![]() |
![]() |
An object that represents a firmware release with a specific version. Devices can have more than one release, and the releases are typically ordered by their version.
See also: FwupdDevice
gchar *
fwupd_release_to_string (FwupdRelease *release
);
Builds a text representation of the object.
Since: 0.9.3
const gchar *
fwupd_release_get_version (FwupdRelease *release
);
Gets the update version.
Since: 0.9.3
void fwupd_release_set_version (FwupdRelease *release
,const gchar *version
);
Sets the update version.
Since: 0.9.3
const gchar *
fwupd_release_get_uri (FwupdRelease *release
);
Gets the update uri.
Since: 0.9.3
void fwupd_release_set_uri (FwupdRelease *release
,const gchar *uri
);
Sets the update uri, i.e. where you can download the firmware from.
Since: 0.9.3
GPtrArray *
fwupd_release_get_categories (FwupdRelease *release
);
Gets the release categories.
Since: 1.2.7
void fwupd_release_add_category (FwupdRelease *release
,const gchar *category
);
Adds the update category.
Since: 1.2.7
gboolean fwupd_release_has_category (FwupdRelease *release
,const gchar *category
);
Finds out if the release has the update category.
Since: 1.2.7
GPtrArray *
fwupd_release_get_checksums (FwupdRelease *release
);
Gets the release checksums.
Since: 0.9.3
void fwupd_release_add_checksum (FwupdRelease *release
,const gchar *checksum
);
Sets the update checksum.
Since: 0.9.3
gboolean fwupd_release_has_checksum (FwupdRelease *release
,const gchar *checksum
);
Finds out if the release has the update checksum.
Since: 1.2.6
GHashTable *
fwupd_release_get_metadata (FwupdRelease *release
);
Gets the release metadata.
Since: 1.0.4
void fwupd_release_add_metadata (FwupdRelease *release
,GHashTable *hash
);
Sets multiple release metadata items.
Since: 1.0.4
void fwupd_release_add_metadata_item (FwupdRelease *release
,const gchar *key
,const gchar *value
);
Sets a release metadata item.
Since: 1.0.4
const gchar * fwupd_release_get_metadata_item (FwupdRelease *release
,const gchar *key
);
Gets a release metadata item.
Since: 1.0.4
const gchar *
fwupd_release_get_filename (FwupdRelease *release
);
Gets the update filename.
Since: 0.9.3
void fwupd_release_set_filename (FwupdRelease *release
,const gchar *filename
);
Sets the update filename.
Since: 0.9.3
const gchar *
fwupd_release_get_protocol (FwupdRelease *release
);
Gets the update protocol.
Since: 1.2.2
void fwupd_release_set_protocol (FwupdRelease *release
,const gchar *protocol
);
Sets the update protocol.
Since: 1.2.2
const gchar *
fwupd_release_get_appstream_id (FwupdRelease *release
);
Gets the AppStream ID.
Since: 0.9.3
void fwupd_release_set_appstream_id (FwupdRelease *release
,const gchar *appstream_id
);
Sets the AppStream ID.
Since: 0.9.3
const gchar *
fwupd_release_get_remote_id (FwupdRelease *release
);
Gets the remote ID that can be used for downloading.
Since: 0.9.3
void fwupd_release_set_remote_id (FwupdRelease *release
,const gchar *remote_id
);
Sets the remote ID that can be used for downloading.
Since: 0.9.3
const gchar *
fwupd_release_get_vendor (FwupdRelease *release
);
Gets the update vendor.
Since: 0.9.3
void fwupd_release_set_vendor (FwupdRelease *release
,const gchar *vendor
);
Sets the update vendor.
Since: 0.9.3
const gchar *
fwupd_release_get_name (FwupdRelease *release
);
Gets the update name.
Since: 0.9.3
void fwupd_release_set_name (FwupdRelease *release
,const gchar *name
);
Sets the update name.
Since: 0.9.3
const gchar *
fwupd_release_get_summary (FwupdRelease *release
);
Gets the update summary.
Since: 0.9.3
void fwupd_release_set_summary (FwupdRelease *release
,const gchar *summary
);
Sets the update summary.
Since: 0.9.3
const gchar *
fwupd_release_get_description (FwupdRelease *release
);
Gets the update description in AppStream markup format.
Since: 0.9.3
void fwupd_release_set_description (FwupdRelease *release
,const gchar *description
);
Sets the update description.
Since: 0.9.3
const gchar *
fwupd_release_get_homepage (FwupdRelease *release
);
Gets the update homepage.
Since: 0.9.3
void fwupd_release_set_homepage (FwupdRelease *release
,const gchar *homepage
);
Sets the update homepage.
Since: 0.9.3
const gchar *
fwupd_release_get_details_url (FwupdRelease *release
);
Gets the URL for the online update notes.
Since: 1.2.4
void fwupd_release_set_details_url (FwupdRelease *release
,const gchar *details_url
);
Sets the URL for the online update notes.
Since: 1.2.4
const gchar *
fwupd_release_get_source_url (FwupdRelease *release
);
Gets the URL of the source code used to build this release.
Since: 1.2.4
void fwupd_release_set_source_url (FwupdRelease *release
,const gchar *source_url
);
Sets the URL of the source code used to build this release.
Since: 1.2.4
guint64
fwupd_release_get_size (FwupdRelease *release
);
Gets the update size.
Since: 0.9.3
void fwupd_release_set_size (FwupdRelease *release
,guint64 size
);
Sets the update size.
Since: 0.9.3
const gchar *
fwupd_release_get_license (FwupdRelease *release
);
Gets the update license.
Since: 0.9.3
void fwupd_release_set_license (FwupdRelease *release
,const gchar *license
);
Sets the update license.
Since: 0.9.3
FwupdTrustFlags
fwupd_release_get_trust_flags (FwupdRelease *release
);
fwupd_release_get_trust_flags
is deprecated and should not be used in newly-written code.
Gets the trust level of the release.
Since: 0.9.8
void fwupd_release_set_trust_flags (FwupdRelease *release
,FwupdTrustFlags trust_flags
);
fwupd_release_set_trust_flags
is deprecated and should not be used in newly-written code.
Sets the trust level of the release.
Since: 0.9.8
FwupdReleaseFlags
fwupd_release_get_flags (FwupdRelease *release
);
Gets the release flags.
Since: 1.2.6
void fwupd_release_set_flags (FwupdRelease *release
,FwupdReleaseFlags flags
);
Sets the release flags.
Since: 1.2.6
void fwupd_release_add_flag (FwupdRelease *release
,FwupdReleaseFlags flag
);
Adds a specific release flag to the release.
Since: 1.2.6
void fwupd_release_remove_flag (FwupdRelease *release
,FwupdReleaseFlags flag
);
Removes a specific release flag from the release.
Since: 1.2.6
gboolean fwupd_release_has_flag (FwupdRelease *release
,FwupdReleaseFlags flag
);
Finds if the release has a specific release flag.
Since: 1.2.6
guint32
fwupd_release_get_install_duration (FwupdRelease *release
);
Gets the time estimate for firmware installation (in seconds)
Since: 1.2.1
void fwupd_release_set_install_duration (FwupdRelease *release
,guint32 duration
);
Sets the time estimate for firmware installation (in seconds)
Since: 1.2.1
const gchar *
fwupd_release_get_update_message (FwupdRelease *release
);
Gets the update message.
Since: 1.2.4
void fwupd_release_set_update_message (FwupdRelease *release
,const gchar *update_message
);
Sets the update message.
Since: 1.2.4