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_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