summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-node.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-08-03 12:49:04 +0100
committerRichard Hughes <richard@hughsie.com>2015-08-03 12:49:04 +0100
commit2f715d9c7612473e4f7cbea843e3b3079df8bb3e (patch)
treeb41d1f96dd39d0ab96f9941476dacac3a512c5df /libappstream-glib/as-node.h
parent6ad012a9fa6f02e7da85fb9bb9155920149b8465 (diff)
downloadappstream-glib-2f715d9c7612473e4f7cbea843e3b3079df8bb3e.tar.gz
Drop the unused _len arguments on many functions
Using the length of -1 for 'unknown' breaks the GIR-generated bindings. This breaks API and ABI and the soname has been updated to reflect this.
Diffstat (limited to 'libappstream-glib/as-node.h')
-rw-r--r--libappstream-glib/as-node.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/libappstream-glib/as-node.h b/libappstream-glib/as-node.h
index 8690f8e..e2d04be 100644
--- a/libappstream-glib/as-node.h
+++ b/libappstream-glib/as-node.h
@@ -137,15 +137,12 @@ void as_node_set_name (GNode *node,
const gchar *name);
void as_node_set_data (GNode *node,
const gchar *cdata,
- gssize cdata_len,
AsNodeInsertFlags insert_flags);
void as_node_set_comment (GNode *node,
- const gchar *comment,
- gssize comment_len);
+ const gchar *comment);
void as_node_add_attribute (GNode *node,
const gchar *key,
- const gchar *value,
- gssize value_len);
+ const gchar *value);
void as_node_add_attribute_as_int (GNode *node,
const gchar *key,
gint value);