summaryrefslogtreecommitdiff
path: root/gdata/gdata-parser.h
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-04-01 22:58:46 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2010-04-01 22:58:46 +0100
commitf98aed130bb2275ab4ea50aaec6016562aa54a3a (patch)
tree0bf983f056b44a3e2c8bad302a363c04303af441 /gdata/gdata-parser.h
parentb926e8e717f309a7d49c57560b4ad4dbf683b215 (diff)
downloadlibgdata-f98aed130bb2275ab4ea50aaec6016562aa54a3a.tar.gz
[core] Add G_GNUC_MALLOC to all functions returning allocated data
This is in addition to G_GNUC_WARN_UNUSED_RESULT, so that we get the benefit of compiler aliasing optimisations, plus a reminder to not discard returned values without freeing/unreffing them.
Diffstat (limited to 'gdata/gdata-parser.h')
-rw-r--r--gdata/gdata-parser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdata/gdata-parser.h b/gdata/gdata-parser.h
index 1e123d64..c2d8fd12 100644
--- a/gdata/gdata-parser.h
+++ b/gdata/gdata-parser.h
@@ -36,7 +36,7 @@ gboolean gdata_parser_error_required_element_missing (const gchar *element_name,
gboolean gdata_parser_error_duplicate_element (xmlNode *element, GError **error);
gboolean gdata_parser_time_val_from_date (const gchar *date, GTimeVal *_time);
-gchar *gdata_parser_date_from_time_val (const GTimeVal *_time) G_GNUC_WARN_UNUSED_RESULT;
+gchar *gdata_parser_date_from_time_val (const GTimeVal *_time) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
/*
* GDataParserOptions:
@@ -78,7 +78,7 @@ gboolean gdata_parser_object_from_element (xmlNode *element, const gchar *elemen
gpointer /* GDataParsable ** */ _output, gboolean *success, GError **error);
void gdata_parser_string_append_escaped (GString *xml_string, const gchar *pre, const gchar *element_content, const gchar *post);
-gchar *gdata_parser_utf8_trim_whitespace (const gchar *s) G_GNUC_WARN_UNUSED_RESULT;
+gchar *gdata_parser_utf8_trim_whitespace (const gchar *s) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
G_END_DECLS