From a404d3471a6349be9b3537d1a0fa6c0f1fb37b53 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 17 Mar 2014 09:58:44 +0000 Subject: Add as_node_from_file() --- libappstream-glib/as-node.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libappstream-glib/as-node.h') 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 #include #include @@ -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) -- cgit v1.2.1