diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2010-03-22 18:43:26 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2010-03-22 18:43:26 +0000 |
commit | f749f3e6f351942a59211ce396d350164e6dd284 (patch) | |
tree | c93f0eb968529aef7e69ed8aa74974e695d9cbbd | |
parent | 18831e7d65157a9f568b122b0411b3362c4f0f56 (diff) | |
download | libgdata-f749f3e6f351942a59211ce396d350164e6dd284.tar.gz |
[core] Constify GTimeVals and GDataColors where possible
Add const attributes to add GTimeVals and GDataColors where they're used
unmodified by a function.
-rw-r--r-- | gdata/gd/gdata-gd-reminder.c | 4 | ||||
-rw-r--r-- | gdata/gd/gdata-gd-reminder.h | 4 | ||||
-rw-r--r-- | gdata/gd/gdata-gd-when.c | 6 | ||||
-rw-r--r-- | gdata/gd/gdata-gd-when.h | 6 | ||||
-rw-r--r-- | gdata/gdata-parser.c | 2 | ||||
-rw-r--r-- | gdata/gdata-parser.h | 2 | ||||
-rw-r--r-- | gdata/gdata-query.c | 8 | ||||
-rw-r--r-- | gdata/gdata-query.h | 8 | ||||
-rw-r--r-- | gdata/gdata-types.c | 2 | ||||
-rw-r--r-- | gdata/gdata-types.h | 2 | ||||
-rw-r--r-- | gdata/services/calendar/gdata-calendar-calendar.c | 2 | ||||
-rw-r--r-- | gdata/services/calendar/gdata-calendar-calendar.h | 2 | ||||
-rw-r--r-- | gdata/services/calendar/gdata-calendar-query.c | 10 | ||||
-rw-r--r-- | gdata/services/calendar/gdata-calendar-query.h | 11 | ||||
-rw-r--r-- | gdata/services/picasaweb/gdata-picasaweb-album.c | 2 | ||||
-rw-r--r-- | gdata/services/picasaweb/gdata-picasaweb-album.h | 2 | ||||
-rw-r--r-- | gdata/services/picasaweb/gdata-picasaweb-file.c | 2 | ||||
-rw-r--r-- | gdata/services/picasaweb/gdata-picasaweb-file.h | 2 | ||||
-rw-r--r-- | gdata/services/youtube/gdata-youtube-video.c | 2 | ||||
-rw-r--r-- | gdata/services/youtube/gdata-youtube-video.h | 2 |
20 files changed, 41 insertions, 40 deletions
diff --git a/gdata/gd/gdata-gd-reminder.c b/gdata/gd/gdata-gd-reminder.c index c21fe345..a5d0a231 100644 --- a/gdata/gd/gdata-gd-reminder.c +++ b/gdata/gd/gdata-gd-reminder.c @@ -295,7 +295,7 @@ get_namespaces (GDataParsable *parsable, GHashTable *namespaces) * Since: 0.2.0 **/ GDataGDReminder * -gdata_gd_reminder_new (const gchar *method, GTimeVal *absolute_time, gint relative_time) +gdata_gd_reminder_new (const gchar *method, const GTimeVal *absolute_time, gint relative_time) { g_return_val_if_fail (absolute_time == NULL || relative_time == -1, NULL); return g_object_new (GDATA_TYPE_GD_REMINDER, "absolute-time", absolute_time, "relative-time", relative_time, "method", method, NULL); @@ -413,7 +413,7 @@ gdata_gd_reminder_get_absolute_time (GDataGDReminder *self, GTimeVal *absolute_t * Since: 0.4.0 **/ void -gdata_gd_reminder_set_absolute_time (GDataGDReminder *self, GTimeVal *absolute_time) +gdata_gd_reminder_set_absolute_time (GDataGDReminder *self, const GTimeVal *absolute_time) { g_return_if_fail (GDATA_IS_GD_REMINDER (self)); diff --git a/gdata/gd/gdata-gd-reminder.h b/gdata/gd/gdata-gd-reminder.h index 51d95a63..3504b08c 100644 --- a/gdata/gd/gdata-gd-reminder.h +++ b/gdata/gd/gdata-gd-reminder.h @@ -62,14 +62,14 @@ typedef struct { GType gdata_gd_reminder_get_type (void) G_GNUC_CONST; -GDataGDReminder *gdata_gd_reminder_new (const gchar *method, GTimeVal *absolute_time, gint relative_time) G_GNUC_WARN_UNUSED_RESULT; +GDataGDReminder *gdata_gd_reminder_new (const gchar *method, const GTimeVal *absolute_time, gint relative_time) G_GNUC_WARN_UNUSED_RESULT; gint gdata_gd_reminder_compare (const GDataGDReminder *a, const GDataGDReminder *b); const gchar *gdata_gd_reminder_get_method (GDataGDReminder *self); void gdata_gd_reminder_set_method (GDataGDReminder *self, const gchar *method); void gdata_gd_reminder_get_absolute_time (GDataGDReminder *self, GTimeVal *absolute_time); -void gdata_gd_reminder_set_absolute_time (GDataGDReminder *self, GTimeVal *absolute_time); +void gdata_gd_reminder_set_absolute_time (GDataGDReminder *self, const GTimeVal *absolute_time); gboolean gdata_gd_reminder_is_absolute_time (GDataGDReminder *self); gint gdata_gd_reminder_get_relative_time (GDataGDReminder *self); diff --git a/gdata/gd/gdata-gd-when.c b/gdata/gd/gdata-gd-when.c index 5a7046f0..ac19cb74 100644 --- a/gdata/gd/gdata-gd-when.c +++ b/gdata/gd/gdata-gd-when.c @@ -379,7 +379,7 @@ get_namespaces (GDataParsable *parsable, GHashTable *namespaces) * Since: 0.2.0 **/ GDataGDWhen * -gdata_gd_when_new (GTimeVal *start_time, GTimeVal *end_time, gboolean is_date) +gdata_gd_when_new (const GTimeVal *start_time, const GTimeVal *end_time, gboolean is_date) { g_return_val_if_fail (start_time != NULL, NULL); return g_object_new (GDATA_TYPE_GD_WHEN, "start-time", start_time, "end-time", end_time, "is-date", is_date, NULL); @@ -451,7 +451,7 @@ gdata_gd_when_get_start_time (GDataGDWhen *self, GTimeVal *start_time) * Since: 0.4.0 **/ void -gdata_gd_when_set_start_time (GDataGDWhen *self, GTimeVal *start_time) +gdata_gd_when_set_start_time (GDataGDWhen *self, const GTimeVal *start_time) { g_return_if_fail (GDATA_IS_GD_WHEN (self)); g_return_if_fail (start_time != NULL); @@ -491,7 +491,7 @@ gdata_gd_when_get_end_time (GDataGDWhen *self, GTimeVal *end_time) * Since: 0.4.0 **/ void -gdata_gd_when_set_end_time (GDataGDWhen *self, GTimeVal *end_time) +gdata_gd_when_set_end_time (GDataGDWhen *self, const GTimeVal *end_time) { g_return_if_fail (GDATA_IS_GD_WHEN (self)); diff --git a/gdata/gd/gdata-gd-when.h b/gdata/gd/gdata-gd-when.h index 1e191d15..cf6f1436 100644 --- a/gdata/gd/gdata-gd-when.h +++ b/gdata/gd/gdata-gd-when.h @@ -62,14 +62,14 @@ typedef struct { GType gdata_gd_when_get_type (void) G_GNUC_CONST; -GDataGDWhen *gdata_gd_when_new (GTimeVal *start_time, GTimeVal *end_time, gboolean is_date) G_GNUC_WARN_UNUSED_RESULT; +GDataGDWhen *gdata_gd_when_new (const GTimeVal *start_time, const GTimeVal *end_time, gboolean is_date) G_GNUC_WARN_UNUSED_RESULT; gint gdata_gd_when_compare (const GDataGDWhen *a, const GDataGDWhen *b); void gdata_gd_when_get_start_time (GDataGDWhen *self, GTimeVal *start_time); -void gdata_gd_when_set_start_time (GDataGDWhen *self, GTimeVal *start_time); +void gdata_gd_when_set_start_time (GDataGDWhen *self, const GTimeVal *start_time); void gdata_gd_when_get_end_time (GDataGDWhen *self, GTimeVal *end_time); -void gdata_gd_when_set_end_time (GDataGDWhen *self, GTimeVal *end_time); +void gdata_gd_when_set_end_time (GDataGDWhen *self, const GTimeVal *end_time); gboolean gdata_gd_when_is_date (GDataGDWhen *self); void gdata_gd_when_set_is_date (GDataGDWhen *self, gboolean is_date); diff --git a/gdata/gdata-parser.c b/gdata/gdata-parser.c index 7f13761f..e719c196 100644 --- a/gdata/gdata-parser.c +++ b/gdata/gdata-parser.c @@ -192,7 +192,7 @@ gdata_parser_time_val_from_date (const gchar *date, GTimeVal *_time) } gchar * -gdata_parser_date_from_time_val (GTimeVal *_time) +gdata_parser_date_from_time_val (const GTimeVal *_time) { time_t secs; struct tm *tm; diff --git a/gdata/gdata-parser.h b/gdata/gdata-parser.h index 1d3474e7..68f45553 100644 --- a/gdata/gdata-parser.h +++ b/gdata/gdata-parser.h @@ -32,7 +32,7 @@ gboolean gdata_parser_error_required_property_missing (xmlNode *element, const g gboolean gdata_parser_error_required_element_missing (const gchar *element_name, const gchar *parent_element_name, GError **error); 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 (GTimeVal *_time) G_GNUC_WARN_UNUSED_RESULT; +gchar *gdata_parser_date_from_time_val (const GTimeVal *_time) G_GNUC_WARN_UNUSED_RESULT; 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; diff --git a/gdata/gdata-query.c b/gdata/gdata-query.c index 53010c49..3df13899 100644 --- a/gdata/gdata-query.c +++ b/gdata/gdata-query.c @@ -763,7 +763,7 @@ gdata_query_get_updated_min (GDataQuery *self, GTimeVal *updated_min) * Set @updated_min to %NULL to unset the property in the query URI. **/ void -gdata_query_set_updated_min (GDataQuery *self, GTimeVal *updated_min) +gdata_query_set_updated_min (GDataQuery *self, const GTimeVal *updated_min) { g_return_if_fail (GDATA_IS_QUERY (self)); @@ -808,7 +808,7 @@ gdata_query_get_updated_max (GDataQuery *self, GTimeVal *updated_max) * Set @updated_max to %NULL to unset the property in the query URI. **/ void -gdata_query_set_updated_max (GDataQuery *self, GTimeVal *updated_max) +gdata_query_set_updated_max (GDataQuery *self, const GTimeVal *updated_max) { g_return_if_fail (GDATA_IS_QUERY (self)); @@ -853,7 +853,7 @@ gdata_query_get_published_min (GDataQuery *self, GTimeVal *published_min) * Set @published_min to %NULL to unset the property in the query URI. **/ void -gdata_query_set_published_min (GDataQuery *self, GTimeVal *published_min) +gdata_query_set_published_min (GDataQuery *self, const GTimeVal *published_min) { g_return_if_fail (GDATA_IS_QUERY (self)); @@ -898,7 +898,7 @@ gdata_query_get_published_max (GDataQuery *self, GTimeVal *published_max) * Set @published_max to %NULL to unset the property in the query URI. **/ void -gdata_query_set_published_max (GDataQuery *self, GTimeVal *published_max) +gdata_query_set_published_max (GDataQuery *self, const GTimeVal *published_max) { g_return_if_fail (GDATA_IS_QUERY (self)); diff --git a/gdata/gdata-query.h b/gdata/gdata-query.h index 7e45abed..89ebf31d 100644 --- a/gdata/gdata-query.h +++ b/gdata/gdata-query.h @@ -73,13 +73,13 @@ void gdata_query_set_categories (GDataQuery *self, const gchar *categories); const gchar *gdata_query_get_author (GDataQuery *self); void gdata_query_set_author (GDataQuery *self, const gchar *author); void gdata_query_get_updated_min (GDataQuery *self, GTimeVal *updated_min); -void gdata_query_set_updated_min (GDataQuery *self, GTimeVal *updated_min); +void gdata_query_set_updated_min (GDataQuery *self, const GTimeVal *updated_min); void gdata_query_get_updated_max (GDataQuery *self, GTimeVal *updated_max); -void gdata_query_set_updated_max (GDataQuery *self, GTimeVal *updated_max); +void gdata_query_set_updated_max (GDataQuery *self, const GTimeVal *updated_max); void gdata_query_get_published_min (GDataQuery *self, GTimeVal *published_min); -void gdata_query_set_published_min (GDataQuery *self, GTimeVal *published_min); +void gdata_query_set_published_min (GDataQuery *self, const GTimeVal *published_min); void gdata_query_get_published_max (GDataQuery *self, GTimeVal *published_max); -void gdata_query_set_published_max (GDataQuery *self, GTimeVal *published_max); +void gdata_query_set_published_max (GDataQuery *self, const GTimeVal *published_max); gint gdata_query_get_start_index (GDataQuery *self); void gdata_query_set_start_index (GDataQuery *self, gint start_index); gboolean gdata_query_is_strict (GDataQuery *self); diff --git a/gdata/gdata-types.c b/gdata/gdata-types.c index 74f44fd1..c9e1a376 100644 --- a/gdata/gdata-types.c +++ b/gdata/gdata-types.c @@ -147,7 +147,7 @@ gdata_color_from_hexadecimal (const gchar *hexadecimal, GDataColor *color) * Since: 0.3.0 **/ gchar * -gdata_color_to_hexadecimal (GDataColor *color) +gdata_color_to_hexadecimal (const GDataColor *color) { g_return_val_if_fail (color != NULL, NULL); return g_strdup_printf ("#%02x%02x%02x", color->red, color->green, color->blue); diff --git a/gdata/gdata-types.h b/gdata/gdata-types.h index c650db20..fb5ebef3 100644 --- a/gdata/gdata-types.h +++ b/gdata/gdata-types.h @@ -45,7 +45,7 @@ typedef struct { #define GDATA_TYPE_COLOR (gdata_color_get_type ()) GType gdata_color_get_type (void) G_GNUC_CONST; gboolean gdata_color_from_hexadecimal (const gchar *hexadecimal, GDataColor *color); -gchar *gdata_color_to_hexadecimal (GDataColor *color) G_GNUC_WARN_UNUSED_RESULT; +gchar *gdata_color_to_hexadecimal (const GDataColor *color) G_GNUC_WARN_UNUSED_RESULT; G_END_DECLS diff --git a/gdata/services/calendar/gdata-calendar-calendar.c b/gdata/services/calendar/gdata-calendar-calendar.c index 9b2e72d5..3e25273b 100644 --- a/gdata/services/calendar/gdata-calendar-calendar.c +++ b/gdata/services/calendar/gdata-calendar-calendar.c @@ -509,7 +509,7 @@ gdata_calendar_calendar_get_color (GDataCalendarCalendar *self, GDataColor *colo * Sets the #GDataCalendarCalendar:color property to @color. **/ void -gdata_calendar_calendar_set_color (GDataCalendarCalendar *self, GDataColor *color) +gdata_calendar_calendar_set_color (GDataCalendarCalendar *self, const GDataColor *color) { g_return_if_fail (GDATA_IS_CALENDAR_CALENDAR (self)); g_return_if_fail (color != NULL); diff --git a/gdata/services/calendar/gdata-calendar-calendar.h b/gdata/services/calendar/gdata-calendar-calendar.h index d54e659c..5c626bb2 100644 --- a/gdata/services/calendar/gdata-calendar-calendar.h +++ b/gdata/services/calendar/gdata-calendar-calendar.h @@ -67,7 +67,7 @@ guint gdata_calendar_calendar_get_times_cleaned (GDataCalendarCalendar *self); gboolean gdata_calendar_calendar_is_hidden (GDataCalendarCalendar *self); void gdata_calendar_calendar_set_is_hidden (GDataCalendarCalendar *self, gboolean is_hidden); void gdata_calendar_calendar_get_color (GDataCalendarCalendar *self, GDataColor *color); -void gdata_calendar_calendar_set_color (GDataCalendarCalendar *self, GDataColor *color); +void gdata_calendar_calendar_set_color (GDataCalendarCalendar *self, const GDataColor *color); gboolean gdata_calendar_calendar_is_selected (GDataCalendarCalendar *self); void gdata_calendar_calendar_set_is_selected (GDataCalendarCalendar *self, gboolean is_selected); const gchar *gdata_calendar_calendar_get_access_level (GDataCalendarCalendar *self); diff --git a/gdata/services/calendar/gdata-calendar-query.c b/gdata/services/calendar/gdata-calendar-query.c index 0b988c9e..9610e5b6 100644 --- a/gdata/services/calendar/gdata-calendar-query.c +++ b/gdata/services/calendar/gdata-calendar-query.c @@ -406,7 +406,7 @@ gdata_calendar_query_new (const gchar *q) * Return value: a new #GDataCalendarQuery **/ GDataCalendarQuery * -gdata_calendar_query_new_with_limits (const gchar *q, GTimeVal *start_min, GTimeVal *start_max) +gdata_calendar_query_new_with_limits (const gchar *q, const GTimeVal *start_min, const GTimeVal *start_max) { return g_object_new (GDATA_TYPE_CALENDAR_QUERY, "q", q, @@ -512,7 +512,7 @@ gdata_calendar_query_get_recurrence_expansion_start (GDataCalendarQuery *self, G * Set @start to %NULL to unset the property in the query URI. **/ void -gdata_calendar_query_set_recurrence_expansion_start (GDataCalendarQuery *self, GTimeVal *start) +gdata_calendar_query_set_recurrence_expansion_start (GDataCalendarQuery *self, const GTimeVal *start) { g_return_if_fail (GDATA_IS_CALENDAR_QUERY (self)); @@ -556,7 +556,7 @@ gdata_calendar_query_get_recurrence_expansion_end (GDataCalendarQuery *self, GTi * Set @end to %NULL to unset the property in the query URI. **/ void -gdata_calendar_query_set_recurrence_expansion_end (GDataCalendarQuery *self, GTimeVal *end) +gdata_calendar_query_set_recurrence_expansion_end (GDataCalendarQuery *self, const GTimeVal *end) { g_return_if_fail (GDATA_IS_CALENDAR_QUERY (self)); @@ -670,7 +670,7 @@ gdata_calendar_query_get_start_min (GDataCalendarQuery *self, GTimeVal *start_mi * Set @start_min to %NULL to unset the property in the query URI. **/ void -gdata_calendar_query_set_start_min (GDataCalendarQuery *self, GTimeVal *start_min) +gdata_calendar_query_set_start_min (GDataCalendarQuery *self, const GTimeVal *start_min) { g_return_if_fail (GDATA_IS_CALENDAR_QUERY (self)); @@ -714,7 +714,7 @@ gdata_calendar_query_get_start_max (GDataCalendarQuery *self, GTimeVal *start_ma * Set @start_max to %NULL to unset the property in the query URI. **/ void -gdata_calendar_query_set_start_max (GDataCalendarQuery *self, GTimeVal *start_max) +gdata_calendar_query_set_start_max (GDataCalendarQuery *self, const GTimeVal *start_max) { g_return_if_fail (GDATA_IS_CALENDAR_QUERY (self)); diff --git a/gdata/services/calendar/gdata-calendar-query.h b/gdata/services/calendar/gdata-calendar-query.h index aa9f892c..f892c2e2 100644 --- a/gdata/services/calendar/gdata-calendar-query.h +++ b/gdata/services/calendar/gdata-calendar-query.h @@ -60,24 +60,25 @@ typedef struct { GType gdata_calendar_query_get_type (void) G_GNUC_CONST; GDataCalendarQuery *gdata_calendar_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT; -GDataCalendarQuery *gdata_calendar_query_new_with_limits (const gchar *q, GTimeVal *start_min, GTimeVal *start_max) G_GNUC_WARN_UNUSED_RESULT; +GDataCalendarQuery *gdata_calendar_query_new_with_limits (const gchar *q, + const GTimeVal *start_min, const GTimeVal *start_max) G_GNUC_WARN_UNUSED_RESULT; gboolean gdata_calendar_query_get_future_events (GDataCalendarQuery *self); void gdata_calendar_query_set_future_events (GDataCalendarQuery *self, gboolean future_events); const gchar *gdata_calendar_query_get_order_by (GDataCalendarQuery *self); void gdata_calendar_query_set_order_by (GDataCalendarQuery *self, const gchar *order_by); void gdata_calendar_query_get_recurrence_expansion_start (GDataCalendarQuery *self, GTimeVal *start); -void gdata_calendar_query_set_recurrence_expansion_start (GDataCalendarQuery *self, GTimeVal *start); +void gdata_calendar_query_set_recurrence_expansion_start (GDataCalendarQuery *self, const GTimeVal *start); void gdata_calendar_query_get_recurrence_expansion_end (GDataCalendarQuery *self, GTimeVal *end); -void gdata_calendar_query_set_recurrence_expansion_end (GDataCalendarQuery *self, GTimeVal *end); +void gdata_calendar_query_set_recurrence_expansion_end (GDataCalendarQuery *self, const GTimeVal *end); gboolean gdata_calendar_query_get_single_events (GDataCalendarQuery *self); void gdata_calendar_query_set_single_events (GDataCalendarQuery *self, gboolean single_events); const gchar *gdata_calendar_query_get_sort_order (GDataCalendarQuery *self); void gdata_calendar_query_set_sort_order (GDataCalendarQuery *self, const gchar *sort_order); void gdata_calendar_query_get_start_min (GDataCalendarQuery *self, GTimeVal *start_min); -void gdata_calendar_query_set_start_min (GDataCalendarQuery *self, GTimeVal *start_min); +void gdata_calendar_query_set_start_min (GDataCalendarQuery *self, const GTimeVal *start_min); void gdata_calendar_query_get_start_max (GDataCalendarQuery *self, GTimeVal *start_max); -void gdata_calendar_query_set_start_max (GDataCalendarQuery *self, GTimeVal *start_max); +void gdata_calendar_query_set_start_max (GDataCalendarQuery *self, const GTimeVal *start_max); const gchar *gdata_calendar_query_get_timezone (GDataCalendarQuery *self); void gdata_calendar_query_set_timezone (GDataCalendarQuery *self, const gchar *_timezone); diff --git a/gdata/services/picasaweb/gdata-picasaweb-album.c b/gdata/services/picasaweb/gdata-picasaweb-album.c index 0d833f9c..e745f437 100644 --- a/gdata/services/picasaweb/gdata-picasaweb-album.c +++ b/gdata/services/picasaweb/gdata-picasaweb-album.c @@ -923,7 +923,7 @@ gdata_picasaweb_album_get_timestamp (GDataPicasaWebAlbum *self, GTimeVal *timest * Since: 0.4.0 **/ void -gdata_picasaweb_album_set_timestamp (GDataPicasaWebAlbum *self, GTimeVal *timestamp) +gdata_picasaweb_album_set_timestamp (GDataPicasaWebAlbum *self, const GTimeVal *timestamp) { g_return_if_fail (GDATA_IS_PICASAWEB_ALBUM (self)); if (timestamp == NULL) diff --git a/gdata/services/picasaweb/gdata-picasaweb-album.h b/gdata/services/picasaweb/gdata-picasaweb-album.h index d28f6b4f..8fa598c4 100644 --- a/gdata/services/picasaweb/gdata-picasaweb-album.h +++ b/gdata/services/picasaweb/gdata-picasaweb-album.h @@ -88,7 +88,7 @@ void gdata_picasaweb_album_set_location (GDataPicasaWebAlbum *self, const gchar GDataPicasaWebVisibility gdata_picasaweb_album_get_visibility (GDataPicasaWebAlbum *self); void gdata_picasaweb_album_set_visibility (GDataPicasaWebAlbum *self, GDataPicasaWebVisibility visibility); void gdata_picasaweb_album_get_timestamp (GDataPicasaWebAlbum *self, GTimeVal *timestamp); -void gdata_picasaweb_album_set_timestamp (GDataPicasaWebAlbum *self, GTimeVal *timestamp); +void gdata_picasaweb_album_set_timestamp (GDataPicasaWebAlbum *self, const GTimeVal *timestamp); guint gdata_picasaweb_album_get_num_photos (GDataPicasaWebAlbum *self); guint gdata_picasaweb_album_get_num_photos_remaining (GDataPicasaWebAlbum *self); glong gdata_picasaweb_album_get_bytes_used (GDataPicasaWebAlbum *self); diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.c b/gdata/services/picasaweb/gdata-picasaweb-file.c index a3a90b6f..81323ab5 100644 --- a/gdata/services/picasaweb/gdata-picasaweb-file.c +++ b/gdata/services/picasaweb/gdata-picasaweb-file.c @@ -1274,7 +1274,7 @@ gdata_picasaweb_file_get_timestamp (GDataPicasaWebFile *self, GTimeVal *timestam * Since: 0.4.0 **/ void -gdata_picasaweb_file_set_timestamp (GDataPicasaWebFile *self, GTimeVal *timestamp) +gdata_picasaweb_file_set_timestamp (GDataPicasaWebFile *self, const GTimeVal *timestamp) { /* RHSTODO: I think the timestamp value is just being over-ridden by the file's actual EXIF time value; unless diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.h b/gdata/services/picasaweb/gdata-picasaweb-file.h index abfaacdf..2288219a 100644 --- a/gdata/services/picasaweb/gdata-picasaweb-file.h +++ b/gdata/services/picasaweb/gdata-picasaweb-file.h @@ -80,7 +80,7 @@ void gdata_picasaweb_file_set_client (GDataPicasaWebFile *self, const gchar *cli const gchar *gdata_picasaweb_file_get_checksum (GDataPicasaWebFile *self); void gdata_picasaweb_file_set_checksum (GDataPicasaWebFile *self, const gchar *checksum); void gdata_picasaweb_file_get_timestamp (GDataPicasaWebFile *self, GTimeVal *timestamp); -void gdata_picasaweb_file_set_timestamp (GDataPicasaWebFile *self, GTimeVal *timestamp); +void gdata_picasaweb_file_set_timestamp (GDataPicasaWebFile *self, const GTimeVal *timestamp); gboolean gdata_picasaweb_file_is_commenting_enabled (GDataPicasaWebFile *self); void gdata_picasaweb_file_set_is_commenting_enabled (GDataPicasaWebFile *self, gboolean is_commenting_enabled); guint gdata_picasaweb_file_get_comment_count (GDataPicasaWebFile *self); diff --git a/gdata/services/youtube/gdata-youtube-video.c b/gdata/services/youtube/gdata-youtube-video.c index 23f5198d..097c905d 100644 --- a/gdata/services/youtube/gdata-youtube-video.c +++ b/gdata/services/youtube/gdata-youtube-video.c @@ -1371,7 +1371,7 @@ gdata_youtube_video_get_recorded (GDataYouTubeVideo *self, GTimeVal *recorded) * Since: 0.3.0 **/ void -gdata_youtube_video_set_recorded (GDataYouTubeVideo *self, GTimeVal *recorded) +gdata_youtube_video_set_recorded (GDataYouTubeVideo *self, const GTimeVal *recorded) { g_return_if_fail (GDATA_IS_YOUTUBE_VIDEO (self)); if (recorded == NULL) { diff --git a/gdata/services/youtube/gdata-youtube-video.h b/gdata/services/youtube/gdata-youtube-video.h index 6f723a03..a89c74c0 100644 --- a/gdata/services/youtube/gdata-youtube-video.h +++ b/gdata/services/youtube/gdata-youtube-video.h @@ -148,7 +148,7 @@ gboolean gdata_youtube_video_is_draft (GDataYouTubeVideo *self); void gdata_youtube_video_set_is_draft (GDataYouTubeVideo *self, gboolean is_draft); GDataYouTubeState *gdata_youtube_video_get_state (GDataYouTubeVideo *self); void gdata_youtube_video_get_recorded (GDataYouTubeVideo *self, GTimeVal *recorded); -void gdata_youtube_video_set_recorded (GDataYouTubeVideo *self, GTimeVal *recorded); +void gdata_youtube_video_set_recorded (GDataYouTubeVideo *self, const GTimeVal *recorded); GDataYouTubeAspectRatio gdata_youtube_video_get_aspect_ratio (GDataYouTubeVideo *self); void gdata_youtube_video_set_aspect_ratio (GDataYouTubeVideo *self, GDataYouTubeAspectRatio aspect_ratio); |