diff options
author | Richard Hughes <richard@hughsie.com> | 2014-03-13 17:17:46 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-03-13 19:01:12 +0000 |
commit | d499e17d1b40396efe2caee988c81251de0cab46 (patch) | |
tree | 3bb6861cef6666e7931e9fde7242de4bffbaa63b /libappstream-glib/as-node.h | |
parent | f1a66dff2bdc48e465711ee551a49907831f66b2 (diff) | |
download | appstream-glib-d499e17d1b40396efe2caee988c81251de0cab46.tar.gz |
Make as_app_add_language() more friendly for expat-style parsers
We use <lang percentage=100>en_GB</lang> so the language itself has to be the
text with the length, although used internally as the key.
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 61cd18b..8356e21 100644 --- a/libappstream-glib/as-node.h +++ b/libappstream-glib/as-node.h @@ -61,6 +61,8 @@ const gchar *as_node_get_name (const GNode *node); const gchar *as_node_get_data (const GNode *node); const gchar *as_node_get_attribute (const GNode *node, const gchar *key); +gint as_node_get_attribute_as_int (const GNode *node, + const gchar *key); GHashTable *as_node_get_localized (const GNode *node, const gchar *key); GHashTable *as_node_get_localized_unwrap (const GNode *node, |