| Top |
| #define | AS_TYPE_RELEASE |
| struct | AsReleaseClass |
| enum | AsReleaseKind |
| enum | AsReleaseUrlKind |
| 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 MetaInfo files.
See also: AsComponent
const gchar *
as_release_kind_to_string (AsReleaseKind kind);
Converts the enumerated value to an text representation.
Since: 0.12.0
AsReleaseKind
as_release_kind_from_string (const gchar *kind_str);
Converts the text representation to an enumerated value.
Since: 0.12.0
const gchar *
as_release_url_kind_to_string (AsReleaseUrlKind kind);
Converts the enumerated value to an text representation.
Since: 0.12.5
AsReleaseUrlKind
as_release_url_kind_from_string (const gchar *kind_str);
Converts the text representation to an enumerated value.
Since: 0.12.5
AsReleaseKind
as_release_get_kind (AsRelease *release);
Gets the type of the release. (development or stable release)
Since: 0.12.0
void as_release_set_kind (AsRelease *release,AsReleaseKind kind);
Sets the release kind to distinguish between end-user ready stable releases and development prereleases..
Since: 0.12.0
const gchar *
as_release_get_active_locale (AsRelease *release);
Get the current active locale, which is used to get localized messages.
void as_release_set_active_locale (AsRelease *release,const gchar *locale);
Set the current active locale, which is used to get localized messages. If the AsComponent linking this AsRelease was fetched from a localized database, usually only one locale is available.
release |
a AsRelease instance. |
|
locale |
a POSIX or BCP47 locale, or |
[nullable] |
const gchar *
as_release_get_version (AsRelease *release);
Gets the release version.
void as_release_set_version (AsRelease *release,const gchar *version);
Sets the release version.
gint as_release_vercmp (AsRelease *rel1,AsRelease *rel2);
Compare the version numbers of two releases.
const gchar *
as_release_get_date (AsRelease *release);
Gets the release date.
Since: 0.12.5
void as_release_set_date (AsRelease *release,const gchar *date);
Sets the release date.
Since: 0.12.5
guint64
as_release_get_timestamp (AsRelease *release);
Gets the release timestamp.
void as_release_set_timestamp (AsRelease *release,guint64 timestamp);
Sets the release timestamp.
const gchar *
as_release_get_date_eol (AsRelease *release);
Gets the end-of-life date for this release.
Since: 0.12.5
void as_release_set_date_eol (AsRelease *release,const gchar *date);
Sets the end-of-life date for this release.
Since: 0.12.5
guint64
as_release_get_timestamp_eol (AsRelease *release);
Gets the UNIX timestamp for the date when this release is out of support (end-of-life).
Since: 0.12.5
void as_release_set_timestamp_eol (AsRelease *release,guint64 timestamp);
Sets the UNIX timestamp for the date when this release is out of support (end-of-life).
Since: 0.12.5
const gchar *
as_release_get_description (AsRelease *release);
Gets the release description markup for a given locale.
void as_release_set_description (AsRelease *release,const gchar *description,const gchar *locale);
Sets the description release markup.
release |
a AsRelease instance. |
|
description |
the description markup. |
|
locale |
the BCP47 locale, or |
[nullable] |
AsUrgencyKind
as_release_get_urgency (AsRelease *release);
Gets the urgency of the release (showing how important it is to update to a more recent release)
Since: 0.6.5
void as_release_set_urgency (AsRelease *release,AsUrgencyKind urgency);
Sets the release urgency.
release |
a AsRelease instance. |
|
urgency |
the urgency of this release/update (as AsUrgencyKind) |
Since: 0.6.5
GPtrArray *
as_release_get_issues (AsRelease *release);
Get a list of all issues resolved by this release.
Since: 0.12.9
void as_release_add_issue (AsRelease *release,AsIssue *issue);
Add information about a (resolved) issue to this release.
Since: 0.12.9
GPtrArray *
as_release_get_artifacts (AsRelease *release);
Get a list of all downloadable artifacts that are associated with this release.
Since: 0.12.6
void as_release_add_artifact (AsRelease *release,AsArtifact *artifact);
Add an artifact (binary / source download) for this release.
Since: 0.12.6
const gchar * as_release_get_url (AsRelease *release,AsReleaseUrlKind url_kind);
Gets an URL.
Since: 0.12.5
void as_release_set_url (AsRelease *release,AsReleaseUrlKind url_kind,const gchar *url);
Sets an URL for this release.
release |
a AsRelease instance. |
|
url_kind |
the URL kind, e.g. |
|
url |
the full URL. |
Since: 0.12.5
guint64 as_release_get_size (AsRelease *release,AsSizeKind kind);
as_release_get_size is deprecated and should not be used in newly-written code.
Use the AsArtifact directly to obtain this information.
Gets the release size.
Since: 0.8.6
void as_release_set_size (AsRelease *release,guint64 size,AsSizeKind kind);
as_release_set_size is deprecated and should not be used in newly-written code.
Use the AsArtifact directly to obtain this information.
Sets the release size for the given kind.
Since: 0.8.6
GPtrArray *
as_release_get_locations (AsRelease *release);
as_release_get_locations is deprecated and should not be used in newly-written code.
Use the AsArtifact directly to obtain this information.
Gets the release locations, typically URLs.
Since: 0.8.1
void as_release_add_location (AsRelease *release,const gchar *location);
as_release_add_location is deprecated and should not be used in newly-written code.
Use the AsArtifact directly to obtain this information.
Adds a release location.
Since: 0.8.1
GPtrArray *
as_release_get_checksums (AsRelease *release);
as_release_get_checksums is deprecated and should not be used in newly-written code.
Use the AsArtifact directly to obtain this information.
Get a list of all checksums we have for this release.
Since: 0.10
AsChecksum * as_release_get_checksum (AsRelease *release,AsChecksumKind kind);
as_release_get_checksum is deprecated and should not be used in newly-written code.
Use the AsArtifact directly to obtain this information.
Gets the release checksum
Since: 0.8.2
void as_release_add_checksum (AsRelease *release,AsChecksum *cs);
as_release_add_checksum is deprecated and should not be used in newly-written code.
Use the AsArtifact directly to obtain this information.
Add a checksum for the file associated with this release.
Since: 0.8.2