Top | ![]() |
![]() |
![]() |
![]() |
These functions are used internally to libappstream-glib, and some may be useful to user-applications.
gchar * as_markup_convert_simple (const gchar *markup
,gssize markup_len
,GError **error
);
Converts an XML description into a printable form.
Since 0.1.0
gboolean
as_utils_is_stock_icon_name (const gchar *name
);
Searches the known list of stock icons.
TRUE
if the icon is a "stock icon name" and does not need to be
included in the AppStream icon tarball
Since 0.1.3
gboolean
as_utils_is_spdx_license_id (const gchar *license_id
);
Searches the known list of SPDX license IDs.
Since 0.1.5
gboolean
as_utils_is_spdx_license (const gchar *license
);
Checks the licence string to check it being a valid licence. NOTE: SPDX licences can't typically contain brackets.
Since 0.2.5
gboolean
as_utils_is_environment_id (const gchar *environment_id
);
Searches the known list of registered environment IDs.
Since 0.2.4
gboolean
as_utils_is_category_id (const gchar *category_id
);
Searches the known list of registered category IDs.
Since 0.2.4
gboolean
as_utils_is_blacklisted_id (const gchar *desktop_id
);
Searches the known list of blacklisted desktop IDs.
Since 0.2.2
gchar **
as_utils_spdx_license_tokenize (const gchar *license
);
Tokenizes the SPDX license string (or any simarly formatted string) into parts. Any non-licence parts of the string e.g. " and " are prefexed with "#".
Since 0.1.5
gchar *
as_utils_spdx_license_detokenize (gchar **license_tokens
);
De-tokenizes the SPDX licenses into a string.
Since 0.2.5
gboolean as_utils_check_url_exists (const gchar *url
,guint timeout
,GError **error
);
Checks to see if a URL is reachable.
Since 0.1.5