diff options
author | Richard Hughes <richard@hughsie.com> | 2014-03-17 09:58:44 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-03-17 09:58:44 +0000 |
commit | a404d3471a6349be9b3537d1a0fa6c0f1fb37b53 (patch) | |
tree | 5d2ca77e0c6f3650484f84bf2e2b9d388efdabb8 /libappstream-glib/as-node.h | |
parent | 1fa4ca1154e2a3dccfb2af020a504909baa722c5 (diff) | |
download | appstream-glib-a404d3471a6349be9b3537d1a0fa6c0f1fb37b53.tar.gz |
Add as_node_from_file()
Diffstat (limited to 'libappstream-glib/as-node.h')
-rw-r--r-- | libappstream-glib/as-node.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libappstream-glib/as-node.h b/libappstream-glib/as-node.h index 1e4b72d..4074820 100644 --- a/libappstream-glib/as-node.h +++ b/libappstream-glib/as-node.h @@ -26,6 +26,7 @@ #ifndef __AS_NODE_H #define __AS_NODE_H +#include <gio/gio.h> #include <glib-object.h> #include <stdarg.h> @@ -77,6 +78,10 @@ GNode *as_node_from_xml (const gchar *data, gssize data_len, GError **error) G_GNUC_WARN_UNUSED_RESULT; +GNode *as_node_from_file (GFile *file, + GCancellable *cancellable, + GError **error) + G_GNUC_WARN_UNUSED_RESULT; GNode *as_node_find (GNode *root, const gchar *path) |