diff options
author | Richard Hughes <richard@hughsie.com> | 2014-06-24 11:32:17 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-06-24 11:33:21 +0100 |
commit | 8c65488486f577f65968f32cbf8c8123ba3a873a (patch) | |
tree | bad3018fc9adfa7dd06341da39bc1d1954c9895c /libappstream-glib/as-node.h | |
parent | 778f968d2827fd53dd2f2bbe21b287be161f929e (diff) | |
download | appstream-glib-8c65488486f577f65968f32cbf8c8123ba3a873a.tar.gz |
Add AS_NODE_TO_XML_FLAG_SORT_CHILDREN
We may wish to sort the tags in the file when outputting human-readable XML.
Diffstat (limited to 'libappstream-glib/as-node.h')
-rw-r--r-- | libappstream-glib/as-node.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-node.h b/libappstream-glib/as-node.h index 2074a46..c5ee653 100644 --- a/libappstream-glib/as-node.h +++ b/libappstream-glib/as-node.h @@ -41,6 +41,7 @@ G_BEGIN_DECLS * @AS_NODE_TO_XML_FLAG_FORMAT_MULTILINE: Split up children with a newline * @AS_NODE_TO_XML_FLAG_FORMAT_INDENT: Indent the XML by child depth * @AS_NODE_TO_XML_FLAG_INCLUDE_SIBLINGS: Include the siblings when converting + * @AS_NODE_TO_XML_FLAG_SORT_CHILDREN: Sort the tags by alphabetical order * * The flags for converting to XML. **/ @@ -50,6 +51,7 @@ typedef enum { AS_NODE_TO_XML_FLAG_FORMAT_MULTILINE = 2, /* Since: 0.1.0 */ AS_NODE_TO_XML_FLAG_FORMAT_INDENT = 4, /* Since: 0.1.0 */ AS_NODE_TO_XML_FLAG_INCLUDE_SIBLINGS = 8, /* Since: 0.1.4 */ + AS_NODE_TO_XML_FLAG_SORT_CHILDREN = 16, /* Since: 0.2.1 */ /*< private >*/ AS_NODE_TO_XML_FLAG_LAST } AsNodeToXmlFlags; |