summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-node.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-04-08 12:30:08 +0100
committerRichard Hughes <richard@hughsie.com>2014-04-08 12:31:20 +0100
commit365dade7b7d14fdb1d0ef358a1d6a6ff27a492e2 (patch)
tree78b98e4c1715c173676616317f963153ac93667f /libappstream-glib/as-node.h
parentd491d8809183d5930e6ae87ce32859f60a5712bf (diff)
downloadappstream-glib-365dade7b7d14fdb1d0ef358a1d6a6ff27a492e2.tar.gz
Load AppStream files assuming literal text strings
AppStream is a 'destination' format, so we don't want to try to parse the text data and reassemble strings and strip leading whitespace. However, as AsNode is used by AppData too (a source format) we just need to add a new flag to make this configurable.
Diffstat (limited to 'libappstream-glib/as-node.h')
-rw-r--r--libappstream-glib/as-node.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-node.h b/libappstream-glib/as-node.h
index b72fa7a..1800bcf 100644
--- a/libappstream-glib/as-node.h
+++ b/libappstream-glib/as-node.h
@@ -55,11 +55,13 @@ typedef enum {
/**
* AsNodeFromXmlFlags:
* @AS_NODE_FROM_XML_FLAG_NONE: No extra flags to use
+ * @AS_NODE_FROM_XML_FLAG_LITERAL_TEXT: Treat the text as an exact string
*
* The flags for converting from XML.
**/
typedef enum {
AS_NODE_FROM_XML_FLAG_NONE = 0, /* Since: 0.1.0 */
+ AS_NODE_FROM_XML_FLAG_LITERAL_TEXT = 1, /* Since: 0.1.3 */
/*< private >*/
AS_NODE_FROM_XML_FLAG_LAST
} AsNodeFromXmlFlags;