diff options
author | Richard Hughes <richard@hughsie.com> | 2014-03-18 08:40:42 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-03-18 09:13:25 +0000 |
commit | 648e162e687e3e94faaa8b9423f896fe83296b11 (patch) | |
tree | b54cac5380e800f46feb0a48e3c7af6358b18a99 /libappstream-glib/as-node.h | |
parent | 52670ec75717356001b73fe6c0ddfb5964fdaf61 (diff) | |
download | appstream-glib-648e162e687e3e94faaa8b9423f896fe83296b11.tar.gz |
Add a AsNodeFromXmlFlags bitfield to allow future API additions
Diffstat (limited to 'libappstream-glib/as-node.h')
-rw-r--r-- | libappstream-glib/as-node.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libappstream-glib/as-node.h b/libappstream-glib/as-node.h index 3ba4c12..66063af 100644 --- a/libappstream-glib/as-node.h +++ b/libappstream-glib/as-node.h @@ -42,6 +42,12 @@ typedef enum { } AsNodeToXmlFlags; typedef enum { + AS_NODE_FROM_XML_FLAG_NONE = 0, + /*< private >*/ + AS_NODE_FROM_XML_FLAG_LAST +} AsNodeFromXmlFlags; + +typedef enum { AS_NODE_INSERT_FLAG_NONE = 0, /* 'bar & baz > foo' */ AS_NODE_INSERT_FLAG_PRE_ESCAPED = 1, /* 'bar & baz < foo' */ AS_NODE_INSERT_FLAG_SWAPPED = 2, @@ -76,9 +82,11 @@ GString *as_node_to_xml (const GNode *node, AsNodeToXmlFlags flags); GNode *as_node_from_xml (const gchar *data, gssize data_len, + AsNodeFromXmlFlags flags, GError **error) G_GNUC_WARN_UNUSED_RESULT; GNode *as_node_from_file (GFile *file, + AsNodeFromXmlFlags flags, GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT; |