diff options
author | Richard Hughes <richard@hughsie.com> | 2015-10-01 19:58:58 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-10-01 19:58:58 +0100 |
commit | 984d9a9b858c7cfdddc2bdfeee6a54642936be04 (patch) | |
tree | 818df5538f53cc0ee99d4b618e8ced3d7e7e657e /libappstream-glib/as-utils.h | |
parent | 87bd7e993d6ca28e3a5ef8f26024dd6ec9071363 (diff) | |
download | appstream-glib-984d9a9b858c7cfdddc2bdfeee6a54642936be04.tar.gz |
Add as_markup_validate() to check descriptions
Diffstat (limited to 'libappstream-glib/as-utils.h')
-rw-r--r-- | libappstream-glib/as-utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libappstream-glib/as-utils.h b/libappstream-glib/as-utils.h index 8e8d5b3..5f13c84 100644 --- a/libappstream-glib/as-utils.h +++ b/libappstream-glib/as-utils.h @@ -80,12 +80,16 @@ typedef enum { * AsMarkupConvertFormat: * @AS_MARKUP_CONVERT_FORMAT_SIMPLE: UTF-8 text * @AS_MARKUP_CONVERT_FORMAT_MARKDOWN: Markdown format + * @AS_MARKUP_CONVERT_FORMAT_NULL: No output + * @AS_MARKUP_CONVERT_FORMAT_APPSTREAM: AppStream (passthrough) * * The output format used when converting AppStream descriptions. **/ typedef enum { AS_MARKUP_CONVERT_FORMAT_SIMPLE, AS_MARKUP_CONVERT_FORMAT_MARKDOWN, + AS_MARKUP_CONVERT_FORMAT_NULL, /* Since: 0.5.2 */ + AS_MARKUP_CONVERT_FORMAT_APPSTREAM, /* Since: 0.5.2 */ /*< private >*/ AS_MARKUP_CONVERT_FORMAT_LAST } AsMarkupConvertFormat; @@ -95,6 +99,8 @@ gchar *as_markup_convert_simple (const gchar *markup, gchar *as_markup_convert (const gchar *markup, AsMarkupConvertFormat format, GError **error); +gboolean as_markup_validate (const gchar *markup, + GError **error); gchar **as_markup_strsplit_words (const gchar *text, guint line_len); |