summaryrefslogtreecommitdiff
path: root/gdata/gdata-upload-stream.h
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-04-03 00:02:49 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2010-04-16 21:34:06 +0100
commitf3d4e4261e0b1b06c2ab5ec401b08e518ed22090 (patch)
treec94a37f2d2801788e616852280b7f52effb93fbb /gdata/gdata-upload-stream.h
parente54748533b841ffa9decbb0245b1bdb39a86ae3e (diff)
downloadlibgdata-f3d4e4261e0b1b06c2ab5ec401b08e518ed22090.tar.gz
[core] Mark most getter functions as pure
Add G_GNUC_PURE to all applicable getter functions, which should allow gcc to optimise calls to libgdata in some cases. This required a little rewrite of the authentication system to ensure the username and password (etc.) are only changed on the #GDataService from the main thread.
Diffstat (limited to 'gdata/gdata-upload-stream.h')
-rw-r--r--gdata/gdata-upload-stream.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdata/gdata-upload-stream.h b/gdata/gdata-upload-stream.h
index af64c8da..d726f719 100644
--- a/gdata/gdata-upload-stream.h
+++ b/gdata/gdata-upload-stream.h
@@ -69,11 +69,11 @@ GOutputStream *gdata_upload_stream_new (GDataService *service, const gchar *meth
const gchar *gdata_upload_stream_get_response (GDataUploadStream *self, gssize *length);
-GDataService *gdata_upload_stream_get_service (GDataUploadStream *self);
-const gchar *gdata_upload_stream_get_upload_uri (GDataUploadStream *self);
-GDataEntry *gdata_upload_stream_get_entry (GDataUploadStream *self);
-const gchar *gdata_upload_stream_get_slug (GDataUploadStream *self);
-const gchar *gdata_upload_stream_get_content_type (GDataUploadStream *self);
+GDataService *gdata_upload_stream_get_service (GDataUploadStream *self) G_GNUC_PURE;
+const gchar *gdata_upload_stream_get_upload_uri (GDataUploadStream *self) G_GNUC_PURE;
+GDataEntry *gdata_upload_stream_get_entry (GDataUploadStream *self) G_GNUC_PURE;
+const gchar *gdata_upload_stream_get_slug (GDataUploadStream *self) G_GNUC_PURE;
+const gchar *gdata_upload_stream_get_content_type (GDataUploadStream *self) G_GNUC_PURE;
G_END_DECLS