| Top |
| #define | AS_TYPE_RELEASE |
| struct | AsReleaseClass |
| enum | AsReleaseKind |
| enum | AsReleaseState |
| AsRelease |
This object represents a single upstream release, typically a minor update. Releases can contain a localized description of paragraph and list elements and also have a version number and timestamp.
Releases can be automatically generated by parsing upstream ChangeLogs or .spec files, or can be populated using AppData files.
See also: AsRelease
gint as_release_vercmp (AsRelease *rel1,AsRelease *rel2);
Compares two release.
Since: 0.4.2
AsReleaseKind
as_release_kind_from_string (const gchar *kind_str);
Converts the text representation to an enumerated value.
Since: 0.7.6
const gchar *
as_release_kind_to_string (AsReleaseKind kind);
Converts the enumerated value to an text representation.
Since: 0.7.6
AsReleaseState
as_release_state_from_string (const gchar *state);
Converts the text representation to an enumerated value.
Since: 0.6.6
const gchar *
as_release_state_to_string (AsReleaseState state);
Converts the enumerated value to an text representation.
Since: 0.6.6
const gchar *
as_release_get_version (AsRelease *release);
Gets the release version.
Since: 0.1.0
GBytes * as_release_get_blob (AsRelease *release,const gchar *filename);
Gets the release blob, which is typically firmware file data.
Since: 0.5.2
guint64
as_release_get_timestamp (AsRelease *release);
Gets the release timestamp.
Since: 0.1.0
guint64
as_release_get_install_duration (AsRelease *release);
Gets the typical install duration.
Since: 0.7.15
const gchar * as_release_get_description (AsRelease *release,const gchar *locale);
Gets the release description markup for a given locale.
Since: 0.1.0
GPtrArray *
as_release_get_locations (AsRelease *release);
Gets the release locations, typically URLs.
Since: 0.3.5
const gchar *
as_release_get_location_default (AsRelease *release);
Gets the default release location, typically a URL.
Since: 0.3.5
AsChecksum * as_release_get_checksum_by_fn (AsRelease *release,const gchar *fn);
Gets the checksum for a release.
Since: 0.4.2
AsChecksum * as_release_get_checksum_by_target (AsRelease *release,AsChecksumTarget target);
Gets the checksum for a release.
Since: 0.4.2
GPtrArray *
as_release_get_checksums (AsRelease *release);
Gets the release checksums.
Since: 0.4.2
AsUrgencyKind
as_release_get_urgency (AsRelease *release);
Gets the release urgency.
Since: 0.5.1
AsReleaseKind
as_release_get_kind (AsRelease *release);
Gets the type of the release.
Since: 0.7.6
AsReleaseState
as_release_get_state (AsRelease *release);
Gets the release state.
Since: 0.5.8
guint64 as_release_get_size (AsRelease *release,AsSizeKind kind);
Gets the release size.
Since: 0.5.2
const gchar * as_release_get_url (AsRelease *release,AsUrlKind url_kind);
Gets a URL.
Since: 0.7.15
void as_release_set_version (AsRelease *release,const gchar *version);
Sets the release version.
Since: 0.1.0
void as_release_set_blob (AsRelease *release,const gchar *filename,GBytes *blob);
Sets a release blob, which is typically firmware data or a detached signature.
NOTE: This is not stored in the XML file, and is only available in-memory.
Since: 0.5.2
void as_release_set_timestamp (AsRelease *release,guint64 timestamp);
Sets the release timestamp.
Since: 0.1.0
void as_release_set_install_duration (AsRelease *release,guint64 install_duration);
Sets the typical duration of the install.
Since: 0.7.15
void as_release_set_description (AsRelease *release,const gchar *locale,const gchar *description);
Sets the description release markup.
Since: 0.1.0
void as_release_add_location (AsRelease *release,const gchar *location);
Adds a release location.
Since: 0.3.5
void as_release_add_checksum (AsRelease *release,AsChecksum *checksum);
Adds a release checksum.
Since: 0.4.2
void as_release_set_urgency (AsRelease *release,AsUrgencyKind urgency);
Sets the release urgency.
Since: 0.5.1
void as_release_set_kind (AsRelease *release,AsReleaseKind kind);
Sets the release kind.
Since: 0.7.6
void as_release_set_state (AsRelease *release,AsReleaseState state);
Sets the release state.
Since: 0.5.8
void as_release_set_size (AsRelease *release,AsSizeKind kind,guint64 size);
Sets the release size.
release |
a AsRelease instance |
|
kind |
a AsSizeKind, e.g. AS_SIZE_KIND_DOWNLOAD |
|
size |
a size in bytes, or 0 for unknown |
Since: 0.5.2