Top | ![]() |
![]() |
![]() |
![]() |
AsRelease * | as_release_new () |
const gchar * | as_release_get_version () |
guint64 | as_release_get_timestamp () |
const gchar * | as_release_get_description () |
GPtrArray * | as_release_get_locations () |
const gchar * | as_release_get_location_default () |
const gchar * | as_release_get_checksum () |
void | as_release_set_version () |
void | as_release_set_timestamp () |
void | as_release_set_description () |
void | as_release_add_location () |
void | as_release_set_checksum () |
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: AsApp
const gchar *
as_release_get_version (AsRelease *release
);
Gets the release version.
Since 0.1.0
guint64
as_release_get_timestamp (AsRelease *release
);
Gets the release timestamp.
Since 0.1.0
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
const gchar * as_release_get_checksum (AsRelease *release
,GChecksumType checksum_type
);
Gets the release checksum, typically a SHA1 hash.
Since 0.3.5
void as_release_set_version (AsRelease *release
,const gchar *version
,gssize version_len
);
Sets the release version.
Since 0.1.0
void as_release_set_timestamp (AsRelease *release
,guint64 timestamp
);
Sets the release timestamp.
Since 0.1.0
void as_release_set_description (AsRelease *release
,const gchar *locale
,const gchar *description
,gssize description_len
);
Sets the description release markup.
Since 0.1.0
void as_release_add_location (AsRelease *release
,const gchar *location
,gssize location_len
);
Adds a release location.
Since 0.3.5
void as_release_set_checksum (AsRelease *release
,GChecksumType checksum_type
,const gchar *checksum
,gssize checksum_len
);
Sets the release checksum.
release |
a AsRelease instance. |
|
checksum_type |
a GChecksumType, e.g. |
|
checksum |
the checksum string. |
|
checksum_len |
the size of |
Since 0.3.5