- public AgreementKind agreement_kind_from_string (string value)
- public unowned string agreement_kind_to_string (AgreementKind value)
- public ArtifactKind artifact_kind_from_string (string kind)
- public unowned string artifact_kind_to_string (ArtifactKind kind)
- public BundleKind bundle_kind_from_string (string bundle_str)
- public unowned string bundle_kind_to_string (BundleKind kind)
- public ChecksumKind checksum_kind_from_string (string kind_str)
- public unowned string checksum_kind_to_string (ChecksumKind kind)
- public ColorKind color_kind_from_string (string str)
- public unowned string color_kind_to_string (ColorKind kind)
- public ColorSchemeKind color_scheme_kind_from_string (string str)
- public unowned string color_scheme_kind_to_string (ColorSchemeKind kind)
- public ComponentKind component_kind_from_string (string kind_str)
- public unowned string component_kind_to_string (ComponentKind kind)
- public ComponentScope component_scope_from_string (string scope_str)
- public unowned string component_scope_to_string (ComponentScope scope)
- public string? content_rating_system_format_age (ContentRatingSystem system, uint age)
- public ContentRatingSystem content_rating_system_from_locale (string locale)
- public uint[] content_rating_system_get_csm_ages (ContentRatingSystem system)
- public string[] content_rating_system_get_formatted_ages (ContentRatingSystem system)
- public unowned string? content_rating_system_to_string (ContentRatingSystem system)
- public ContentRatingValue content_rating_value_from_string (string value)
- public unowned string content_rating_value_to_string (ContentRatingValue value)
- public ControlKind control_kind_from_string (string kind_str)
- public unowned string control_kind_to_string (ControlKind kind)
- public DisplayLengthKind display_length_kind_from_string (string kind_str)
- public unowned string display_length_kind_to_string (DisplayLengthKind kind)
- public DisplaySideKind display_side_kind_from_string (string kind_str)
- public unowned string display_side_kind_to_string (DisplaySideKind kind)
- public FormatKind format_kind_from_string (string kind_str)
- public unowned string format_kind_to_string (FormatKind kind)
- public FormatVersion format_version_from_string (string version_str)
- public unowned string format_version_to_string (FormatVersion version)
- public unowned string get_appstream_version ()
Get the version of the AppStream library that is currently used as a
string.
- public string get_current_distro_component_id ()
Returns the component-ID of the current distribution based on
contents of the `/etc/os-release` file.
- public GenericArray<Category> get_default_categories (bool with_special)
Get a list of the default Freedesktop and AppStream categories that
software components (especially GUI applications) can be sorted into in software centers.
- public string get_license_url (string license)
Get a web URL to the license text and more license information for
an SPDX license identifier.
- public uint gstring_replace (StringBuilder string, string find, string replace)
Replaces all occurences of find
with the string
replace
in a StringBuilder.
- public uint gstring_replace2 (StringBuilder string, string find, string replace, uint limit)
Replaces the string find
with the string replace
in a StringBuilder up to limit
times.
- public IconKind icon_kind_from_string (string kind_str)
- public unowned string icon_kind_to_string (IconKind kind)
- public ImageKind image_kind_from_string (string kind)
- public unowned string image_kind_to_string (ImageKind kind)
- public bool is_spdx_license_exception_id (string exception_id)
Searches the known list of SPDX license exception IDs.
- public bool is_spdx_license_expression (string license)
Checks the licence string to check it being a valid licence.
- public bool is_spdx_license_id (string license_id)
Searches the known list of SPDX license IDs.
- public IssueKind issue_kind_from_string (string kind_str)
- public unowned string issue_kind_to_string (IssueKind kind)
- public IssueSeverity issue_severity_from_string (string str)
- public unowned string issue_severity_to_string (IssueSeverity severity)
- public LaunchableKind launchable_kind_from_string (string kind_str)
- public unowned string launchable_kind_to_string (LaunchableKind kind)
- public bool license_is_free_license (string license)
Check if the given license is for free-as-in-freedom software.
- public bool license_is_metadata_license (string license)
Check if the metadata license is suitable for mixing with other
metadata and redistributing the bundled result (this means we prefer permissive licenses here, to not require people shipping
catalog metadata to perform a full license review).
- public bool license_is_metadata_license_id (string license_id)
Tests license ID against the vetted list of licenses that can be
used for metainfo metadata.
- public string license_to_spdx_id (string license)
Converts a non-SPDX license into an SPDX format string where
possible.
- public string markup_convert_simple (string markup) throws Error
- public string[] markup_strsplit_words (string text, uint line_len)
Splits up a long line into an array of smaller strings, each being
no longer than line_len
.
- public MergeKind merge_kind_from_string (string kind_str)
- public unowned string merge_kind_to_string (MergeKind kind)
- public Quark metadata_error_quark ()
- public Quark pool_error_quark ()
- public ProvidedKind provided_kind_from_string (string kind_str)
- public unowned string provided_kind_to_l10n_string (ProvidedKind kind)
- public unowned string provided_kind_to_string (ProvidedKind kind)
- public RelationCompare relation_compare_from_string (string compare_str)
- public unowned string relation_compare_to_string (RelationCompare compare)
- public unowned string relation_compare_to_symbols_string (RelationCompare compare)
- public RelationItemKind relation_item_kind_from_string (string kind_str)
- public unowned string relation_item_kind_to_string (RelationItemKind kind)
- public RelationKind relation_kind_from_string (string kind_str)
- public unowned string relation_kind_to_string (RelationKind kind)
- public ReleaseKind release_kind_from_string (string kind_str)
- public unowned string release_kind_to_string (ReleaseKind kind)
- public ReleaseUrlKind release_url_kind_from_string (string kind_str)
- public unowned string release_url_kind_to_string (ReleaseUrlKind kind)
- public ScreenshotKind screenshot_kind_from_string (string kind)
- public unowned string screenshot_kind_to_string (ScreenshotKind kind)
- public SizeKind size_kind_from_string (string size_kind)
- public unowned string size_kind_to_string (SizeKind size_kind)
- public string? spdx_license_detokenize (string license_tokens)
De-tokenizes the SPDX licenses into a string.
- public string[]? spdx_license_tokenize (string license)
Tokenizes the SPDX license string (or any simarly formatted string)
into parts.
- public SuggestedKind suggested_kind_from_string (string kind_str)
- public unowned string suggested_kind_to_string (SuggestedKind kind)
- public TranslationKind translation_kind_from_string (string kind_str)
- public unowned string translation_kind_to_string (TranslationKind kind)
- public UrgencyKind urgency_kind_from_string (string urgency_kind)
- public unowned string urgency_kind_to_string (UrgencyKind urgency_kind)
- public UrlKind url_kind_from_string (string url_kind)
- public unowned string url_kind_to_string (UrlKind url_kind)
- public string utils_build_data_id (ComponentScope scope, BundleKind bundle_kind, string origin, string cid, string branch)
Builds an identifier string unique to the individual dataset using
the supplied information.
- public int utils_compare_versions (string a, string b)
Compare alpha and numeric segments of two versions.
- public bool utils_data_id_equal (string data_id1, string data_id2)
Checks two component data IDs for equality allowing globs to match.
- public string utils_data_id_get_cid (string data_id)
Get the component-id part of the data-id.
- public uint utils_data_id_hash (string data_id)
Converts a data-id to a hash value.
- public bool utils_data_id_match (string data_id1, string data_id2, DataIdMatchFlags match_flags)
Checks two data IDs for equality allowing globs to match, whilst
also allowing clients to whitelist sections that have to match.
- public bool utils_data_id_valid (string data_id)
Checks if a data ID is valid i.
- public Quark utils_error_quark ()
- public ComponentScope utils_guess_scope_from_path (string path)
- public bool utils_install_metadata_file (MetadataLocation location, string filename, string origin, string destdir) throws Error
Installs an AppStream MetaInfo, AppStream Metadata Collection or
AppStream Icon tarball file to the right place on the filesystem.
- public bool utils_is_category_name (string category_name)
- public bool utils_is_desktop_environment (string desktop)
Searches the known list of desktop environments AppStream knows
about.
- public bool utils_is_platform_triplet (string triplet)
Test if the given string is a valid platform triplet recognized by
AppStream.
- public bool utils_is_tld (string tld)
Searches the known list of TLDs we allow for AppStream IDs.
- public bool utils_locale_is_compatible (string locale1, string locale2)
Calculates if one locale is compatible with another.
- public void utils_sort_components_into_categories (GenericArray<Component> cpts, GenericArray<Category> categories, bool check_duplicates)
Sorts all components in cpts
into the
Category categories listed in categories
.
- public Quark validator_error_quark ()
- public int vercmp (string a, string b, VercmpFlags flags)
Compare alpha and numeric segments of two software versions,
considering flags
.
- public int vercmp_simple (string a, string b)
Compare alpha and numeric segments of two software versions.
- public unowned string version_string ()
Get the version of the AppStream library that is currently used at
runtime as a string.
- public VideoCodecKind video_codec_kind_from_string (string str)
- public unowned string video_codec_kind_to_string (VideoCodecKind kind)
- public VideoContainerKind video_container_kind_from_string (string str)
- public unowned string video_container_kind_to_string (VideoContainerKind kind)