summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-node.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-07-25 12:29:53 +0100
committerRichard Hughes <richard@hughsie.com>2016-07-25 12:29:53 +0100
commit74594acf6d9745b8ea0d4efbd58a4fc331f6ef46 (patch)
treefa31b9f18eea4396a1e247f20630334e42c9f046 /libappstream-glib/as-node.h
parente04788886491aeb6ace2ba1d1161f0ce86c04a21 (diff)
downloadappstream-glib-74594acf6d9745b8ea0d4efbd58a4fc331f6ef46.tar.gz
Add two new GCC warnings and fix up signed/unsigned issues
Diffstat (limited to 'libappstream-glib/as-node.h')
-rw-r--r--libappstream-glib/as-node.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libappstream-glib/as-node.h b/libappstream-glib/as-node.h
index a5d7fc3..d18c924 100644
--- a/libappstream-glib/as-node.h
+++ b/libappstream-glib/as-node.h
@@ -128,6 +128,8 @@ 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);
+guint as_node_get_attribute_as_uint (const GNode *node,
+ const gchar *key);
GHashTable *as_node_get_localized (const GNode *node,
const gchar *key);
const gchar *as_node_get_localized_best (const GNode *node,
@@ -148,6 +150,9 @@ void as_node_add_attribute (GNode *node,
void as_node_add_attribute_as_int (GNode *node,
const gchar *key,
gint value);
+void as_node_add_attribute_as_uint (GNode *node,
+ const gchar *key,
+ guint value);
void as_node_remove_attribute (GNode *node,
const gchar *key);