summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-app-private.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-02-18 16:05:26 +0000
committerRichard Hughes <richard@hughsie.com>2016-02-18 16:05:36 +0000
commitbca94c21017fc7539041980a2cef8c2eb9b60f0a (patch)
tree47486398c28ee3a3b555c29639226738d2c0f047 /libappstream-glib/as-app-private.h
parent98214efde466952c2b02987004ff3d0c241d8075 (diff)
downloadappstream-glib-bca94c21017fc7539041980a2cef8c2eb9b60f0a.tar.gz
Add a warning when validating in strict mode a file with invalid tags
This doesn't actually tell you what tag is invalid, which is a tradeoff between producing someting and also not slowing parsing down for very broken AppStream metadata files. Fixes: https://github.com/hughsie/appstream-glib/issues/94
Diffstat (limited to 'libappstream-glib/as-app-private.h')
-rw-r--r--libappstream-glib/as-app-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-app-private.h b/libappstream-glib/as-app-private.h
index dad833a..91e9399 100644
--- a/libappstream-glib/as-app-private.h
+++ b/libappstream-glib/as-app-private.h
@@ -50,6 +50,7 @@ G_BEGIN_DECLS
* @AS_APP_PROBLEM_TRANSLATED_PROJECT_GROUP: The <project_group> value was translated
* @AS_APP_PROBLEM_UPDATECONTACT_FALLBACK: The file used <updatecontact> without a space
* @AS_APP_PROBLEM_INVALID_PROJECT_GROUP: Invalid project group detected
+ * @AS_APP_PROBLEM_INVALID_XML_TAG: Invalid XML tag name detected
*
* The application problems detected when loading.
**/
@@ -69,6 +70,7 @@ typedef enum {
AS_APP_PROBLEM_TRANSLATED_PROJECT_GROUP = 1 << 11,
AS_APP_PROBLEM_UPDATECONTACT_FALLBACK = 1 << 12,
AS_APP_PROBLEM_INVALID_PROJECT_GROUP = 1 << 13,
+ AS_APP_PROBLEM_INVALID_XML_TAG = 1 << 14,
/*< private >*/
AS_APP_PROBLEM_LAST
} AsAppProblems;