[libgdata] Added G_GNUC_CONST attributes to all _get_type functions



commit b187cdcfad632f6657db411643efef5d60a29d99
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Apr 20 21:42:38 2009 +0100

    Added G_GNUC_CONST attributes to all _get_type functions
---
 gdata/gdata-entry.h                               |    2 +-
 gdata/gdata-feed.h                                |    2 +-
 gdata/gdata-parser.h                              |    2 +-
 gdata/gdata-query.h                               |    2 +-
 gdata/gdata-service.h                             |    6 +++---
 gdata/gdata-types.h                               |    4 ++--
 gdata/services/calendar/gdata-calendar-calendar.h |    2 +-
 gdata/services/calendar/gdata-calendar-event.h    |    2 +-
 gdata/services/calendar/gdata-calendar-query.h    |    2 +-
 gdata/services/calendar/gdata-calendar-service.h  |    2 +-
 gdata/services/contacts/gdata-contacts-contact.h  |    2 +-
 gdata/services/contacts/gdata-contacts-query.h    |    2 +-
 gdata/services/contacts/gdata-contacts-service.h  |    2 +-
 gdata/services/youtube/gdata-youtube-service.h    |    4 ++--
 gdata/services/youtube/gdata-youtube-video.h      |    2 +-
 15 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/gdata/gdata-entry.h b/gdata/gdata-entry.h
index 4402d65..969217f 100644
--- a/gdata/gdata-entry.h
+++ b/gdata/gdata-entry.h
@@ -72,7 +72,7 @@ typedef struct {
 	void (*get_namespaces) (GDataEntry *self, GHashTable *namespaces);
 } GDataEntryClass;
 
-GType gdata_entry_get_type (void);
+GType gdata_entry_get_type (void) G_GNUC_CONST;
 
 GDataEntry *gdata_entry_new (const gchar *id);
 GDataEntry *gdata_entry_new_from_xml (const gchar *xml, gint length, GError **error);
diff --git a/gdata/gdata-feed.h b/gdata/gdata-feed.h
index 5e60fa2..caa2c8f 100644
--- a/gdata/gdata-feed.h
+++ b/gdata/gdata-feed.h
@@ -58,7 +58,7 @@ typedef struct {
 	GObjectClass parent;
 } GDataFeedClass;
 
-GType gdata_feed_get_type (void);
+GType gdata_feed_get_type (void) G_GNUC_CONST;
 
 GList *gdata_feed_get_entries (GDataFeed *self);
 GDataEntry *gdata_feed_look_up_entry (GDataFeed *self, const gchar *id);
diff --git a/gdata/gdata-parser.h b/gdata/gdata-parser.h
index 3fb51d8..d932a59 100644
--- a/gdata/gdata-parser.h
+++ b/gdata/gdata-parser.h
@@ -39,7 +39,7 @@ typedef enum {
 } GDataParserError;
 
 #define GDATA_PARSER_ERROR gdata_parser_error_quark ()
-GQuark gdata_parser_error_quark (void);
+GQuark gdata_parser_error_quark (void) G_GNUC_CONST;
 
 G_END_DECLS
 
diff --git a/gdata/gdata-query.h b/gdata/gdata-query.h
index 6999806..4f70dcb 100644
--- a/gdata/gdata-query.h
+++ b/gdata/gdata-query.h
@@ -54,7 +54,7 @@ typedef struct {
 	GObjectClass parent;
 } GDataQueryClass;
 
-GType gdata_query_get_type (void);
+GType gdata_query_get_type (void) G_GNUC_CONST;
 
 GDataQuery *gdata_query_new (const gchar *q);
 GDataQuery *gdata_query_new_with_limits (const gchar *q, gint start_index, gint max_results);
diff --git a/gdata/gdata-service.h b/gdata/gdata-service.h
index f135a96..1fc0835 100644
--- a/gdata/gdata-service.h
+++ b/gdata/gdata-service.h
@@ -143,9 +143,9 @@ typedef struct {
 				      const gchar *response_body, gint length, GError **error);
 } GDataServiceClass;
 
-GType gdata_service_get_type (void);
-GQuark gdata_service_error_quark (void);
-GQuark gdata_authentication_error_quark (void);
+GType gdata_service_get_type (void) G_GNUC_CONST;
+GQuark gdata_service_error_quark (void) G_GNUC_CONST;
+GQuark gdata_authentication_error_quark (void) G_GNUC_CONST;
 
 gboolean gdata_service_authenticate (GDataService *self, const gchar *username, const gchar *password, GCancellable *cancellable, GError **error);
 void gdata_service_authenticate_async (GDataService *self, const gchar *username, const gchar *password,
diff --git a/gdata/gdata-types.h b/gdata/gdata-types.h
index d37e18b..ea22bb4 100644
--- a/gdata/gdata-types.h
+++ b/gdata/gdata-types.h
@@ -25,7 +25,7 @@
 G_BEGIN_DECLS
 
 #define G_TYPE_TIME_VAL (g_time_val_get_type ())
-GType g_time_val_get_type (void);
+GType g_time_val_get_type (void) G_GNUC_CONST;
 
 typedef struct {
 	guint16 red;
@@ -34,7 +34,7 @@ typedef struct {
 } GDataColor;
 
 #define GDATA_TYPE_COLOR (gdata_color_get_type ())
-GType gdata_color_get_type (void);
+GType gdata_color_get_type (void) G_GNUC_CONST;
 gboolean gdata_color_from_hexadecimal (const gchar *hexadecimal, GDataColor *color);
 
 G_END_DECLS
diff --git a/gdata/services/calendar/gdata-calendar-calendar.h b/gdata/services/calendar/gdata-calendar-calendar.h
index 7fb9b2a..baf4aa5 100644
--- a/gdata/services/calendar/gdata-calendar-calendar.h
+++ b/gdata/services/calendar/gdata-calendar-calendar.h
@@ -47,7 +47,7 @@ typedef struct {
 	GDataEntryClass parent;
 } GDataCalendarCalendarClass;
 
-GType gdata_calendar_calendar_get_type (void);
+GType gdata_calendar_calendar_get_type (void) G_GNUC_CONST;
 
 GDataCalendarCalendar *gdata_calendar_calendar_new (const gchar *id);
 GDataCalendarCalendar *gdata_calendar_calendar_new_from_xml (const gchar *xml, gint length, GError **error);
diff --git a/gdata/services/calendar/gdata-calendar-event.h b/gdata/services/calendar/gdata-calendar-event.h
index 48c2388..b5053dc 100644
--- a/gdata/services/calendar/gdata-calendar-event.h
+++ b/gdata/services/calendar/gdata-calendar-event.h
@@ -47,7 +47,7 @@ typedef struct {
 	GDataEntryClass parent;
 } GDataCalendarEventClass;
 
-GType gdata_calendar_event_get_type (void);
+GType gdata_calendar_event_get_type (void) G_GNUC_CONST;
 
 GDataCalendarEvent *gdata_calendar_event_new (const gchar *id);
 GDataCalendarEvent *gdata_calendar_event_new_from_xml (const gchar *xml, gint length, GError **error);
diff --git a/gdata/services/calendar/gdata-calendar-query.h b/gdata/services/calendar/gdata-calendar-query.h
index cbc2811..148dcc0 100644
--- a/gdata/services/calendar/gdata-calendar-query.h
+++ b/gdata/services/calendar/gdata-calendar-query.h
@@ -46,7 +46,7 @@ typedef struct {
 	GDataQueryClass parent;
 } GDataCalendarQueryClass;
 
-GType gdata_calendar_query_get_type (void);
+GType gdata_calendar_query_get_type (void) G_GNUC_CONST;
 
 GDataCalendarQuery *gdata_calendar_query_new (const gchar *q);
 GDataCalendarQuery *gdata_calendar_query_new_with_limits (const gchar *q, GTimeVal *start_min, GTimeVal *start_max);
diff --git a/gdata/services/calendar/gdata-calendar-service.h b/gdata/services/calendar/gdata-calendar-service.h
index d768a2b..b898bc0 100644
--- a/gdata/services/calendar/gdata-calendar-service.h
+++ b/gdata/services/calendar/gdata-calendar-service.h
@@ -45,7 +45,7 @@ typedef struct {
 	GDataServiceClass parent;
 } GDataCalendarServiceClass;
 
-GType gdata_calendar_service_get_type (void);
+GType gdata_calendar_service_get_type (void) G_GNUC_CONST;
 
 GDataCalendarService *gdata_calendar_service_new (const gchar *client_id);
 
diff --git a/gdata/services/contacts/gdata-contacts-contact.h b/gdata/services/contacts/gdata-contacts-contact.h
index e378ba5..bf90289 100644
--- a/gdata/services/contacts/gdata-contacts-contact.h
+++ b/gdata/services/contacts/gdata-contacts-contact.h
@@ -57,7 +57,7 @@ typedef struct {
 	GDataEntryClass parent;
 } GDataContactsContactClass;
 
-GType gdata_contacts_contact_get_type (void);
+GType gdata_contacts_contact_get_type (void) G_GNUC_CONST;
 
 GDataContactsContact *gdata_contacts_contact_new (const gchar *id);
 GDataContactsContact *gdata_contacts_contact_new_from_xml (const gchar *xml, gint length, GError **error);
diff --git a/gdata/services/contacts/gdata-contacts-query.h b/gdata/services/contacts/gdata-contacts-query.h
index 0959a5a..b79b104 100644
--- a/gdata/services/contacts/gdata-contacts-query.h
+++ b/gdata/services/contacts/gdata-contacts-query.h
@@ -56,7 +56,7 @@ typedef struct {
 	GDataQueryClass parent;
 } GDataContactsQueryClass;
 
-GType gdata_contacts_query_get_type (void);
+GType gdata_contacts_query_get_type (void) G_GNUC_CONST;
 
 GDataContactsQuery *gdata_contacts_query_new (const gchar *q);
 GDataContactsQuery *gdata_contacts_query_new_with_limits (const gchar *q, gint start_index, gint max_results);
diff --git a/gdata/services/contacts/gdata-contacts-service.h b/gdata/services/contacts/gdata-contacts-service.h
index c78774d..184c162 100644
--- a/gdata/services/contacts/gdata-contacts-service.h
+++ b/gdata/services/contacts/gdata-contacts-service.h
@@ -57,7 +57,7 @@ typedef struct {
 	GDataServiceClass parent;
 } GDataContactsServiceClass;
 
-GType gdata_contacts_service_get_type (void);
+GType gdata_contacts_service_get_type (void) G_GNUC_CONST;
 
 GDataContactsService *gdata_contacts_service_new (const gchar *client_id);
 
diff --git a/gdata/services/youtube/gdata-youtube-service.h b/gdata/services/youtube/gdata-youtube-service.h
index c1a994b..390dc0a 100644
--- a/gdata/services/youtube/gdata-youtube-service.h
+++ b/gdata/services/youtube/gdata-youtube-service.h
@@ -102,8 +102,8 @@ typedef struct {
 	GDataServiceClass parent;
 } GDataYouTubeServiceClass;
 
-GType gdata_youtube_service_get_type (void);
-GQuark gdata_youtube_service_error_quark (void);
+GType gdata_youtube_service_get_type (void) G_GNUC_CONST;
+GQuark gdata_youtube_service_error_quark (void) G_GNUC_CONST;
 
 GDataYouTubeService *gdata_youtube_service_new (const gchar *developer_key, const gchar *client_id);
 
diff --git a/gdata/services/youtube/gdata-youtube-video.h b/gdata/services/youtube/gdata-youtube-video.h
index edeed05..912b474 100644
--- a/gdata/services/youtube/gdata-youtube-video.h
+++ b/gdata/services/youtube/gdata-youtube-video.h
@@ -59,7 +59,7 @@ typedef struct {
 	GDataEntryClass parent;
 } GDataYouTubeVideoClass;
 
-GType gdata_youtube_video_get_type (void);
+GType gdata_youtube_video_get_type (void) G_GNUC_CONST;
 
 GDataYouTubeVideo *gdata_youtube_video_new (const gchar *id);
 GDataYouTubeVideo *gdata_youtube_video_new_from_xml (const gchar *xml, gint length, GError **error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]