as-utils

as-utils — Helper functions that are used inside libappstream-glib

Stability Level

Stable, unless otherwise indicated

Functions

Object Hierarchy


Includes

#include <appstream-glib.h>

Description

These functions are used internally to libappstream-glib, and some may be useful to user-applications.

Functions

as_markup_convert_simple ()

gchar *
as_markup_convert_simple (const gchar *markup,
                          gssize markup_len,
                          GError **error);

Converts an XML description into a printable form.

Parameters

markup

the text to copy.

 

markup_len

the length of markup , or -1 if markup is NULL terminated.

 

error

A GError or NULL

 

Returns

a newly allocated NULL terminated string.

[transfer full]

Since 0.1.0


as_utils_is_stock_icon_name ()

gboolean
as_utils_is_stock_icon_name (const gchar *name);

Searches the known list of stock icons.

Parameters

name

an icon name

 

Returns

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

Types and Values