diff options
author | Richard Hughes <richard@hughsie.com> | 2016-07-25 12:29:53 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-07-25 12:29:53 +0100 |
commit | 74594acf6d9745b8ea0d4efbd58a4fc331f6ef46 (patch) | |
tree | fa31b9f18eea4396a1e247f20630334e42c9f046 /libappstream-glib/as-node.h | |
parent | e04788886491aeb6ace2ba1d1161f0ce86c04a21 (diff) | |
download | appstream-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.h | 5 |
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); |