summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-08-09 15:40:47 +0100
committerPhilip Withnall <withnall@endlessm.com>2017-08-09 15:40:47 +0100
commitfa9ad32bb72e9586d36ba5fec5a94a35a5df7e2c (patch)
treeb6ba8f52317bf3bc2eb9a4bacec028e0c9b602e0
parent65ca44ccdfcc19011131fa98ed820a69f57b3286 (diff)
downloadlibgdata-fa9ad32bb72e9586d36ba5fec5a94a35a5df7e2c.tar.gz
picasaweb: Add g_autoptr() support for all PicasaWeb classes
Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r--gdata/services/picasaweb/gdata-picasaweb-album.h1
-rw-r--r--gdata/services/picasaweb/gdata-picasaweb-comment.h1
-rw-r--r--gdata/services/picasaweb/gdata-picasaweb-feed.h1
-rw-r--r--gdata/services/picasaweb/gdata-picasaweb-file.h1
-rw-r--r--gdata/services/picasaweb/gdata-picasaweb-query.h1
-rw-r--r--gdata/services/picasaweb/gdata-picasaweb-service.h1
-rw-r--r--gdata/services/picasaweb/gdata-picasaweb-user.h1
7 files changed, 7 insertions, 0 deletions
diff --git a/gdata/services/picasaweb/gdata-picasaweb-album.h b/gdata/services/picasaweb/gdata-picasaweb-album.h
index 9851cb8a..e228aca1 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-album.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-album.h
@@ -82,6 +82,7 @@ typedef struct {
} GDataPicasaWebAlbumClass;
GType gdata_picasaweb_album_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataPicasaWebAlbum, g_object_unref)
GDataPicasaWebAlbum *gdata_picasaweb_album_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
diff --git a/gdata/services/picasaweb/gdata-picasaweb-comment.h b/gdata/services/picasaweb/gdata-picasaweb-comment.h
index 138297c0..af48a3c1 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-comment.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-comment.h
@@ -66,6 +66,7 @@ typedef struct {
} GDataPicasaWebCommentClass;
GType gdata_picasaweb_comment_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataPicasaWebComment, g_object_unref)
GDataPicasaWebComment *gdata_picasaweb_comment_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
diff --git a/gdata/services/picasaweb/gdata-picasaweb-feed.h b/gdata/services/picasaweb/gdata-picasaweb-feed.h
index 2f7d6c5c..14a86882 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-feed.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-feed.h
@@ -66,6 +66,7 @@ typedef struct {
} GDataPicasaWebFeedClass;
GType gdata_picasaweb_feed_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataPicasaWebFeed, g_object_unref)
G_END_DECLS
diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.h b/gdata/services/picasaweb/gdata-picasaweb-file.h
index ca129dea..1bd9f0ff 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-file.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-file.h
@@ -104,6 +104,7 @@ typedef struct {
} GDataPicasaWebFileClass;
GType gdata_picasaweb_file_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataPicasaWebFile, g_object_unref)
GDataPicasaWebFile *gdata_picasaweb_file_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
diff --git a/gdata/services/picasaweb/gdata-picasaweb-query.h b/gdata/services/picasaweb/gdata-picasaweb-query.h
index f6f40468..8c9492f8 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-query.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-query.h
@@ -68,6 +68,7 @@ typedef struct {
} GDataPicasaWebQueryClass;
GType gdata_picasaweb_query_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataPicasaWebQuery, g_object_unref)
GDataPicasaWebQuery *gdata_picasaweb_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
GDataPicasaWebQuery *gdata_picasaweb_query_new_with_limits (const gchar *q,
diff --git a/gdata/services/picasaweb/gdata-picasaweb-service.h b/gdata/services/picasaweb/gdata-picasaweb-service.h
index 377e7cc9..f144edbf 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-service.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-service.h
@@ -71,6 +71,7 @@ typedef struct {
} GDataPicasaWebServiceClass;
GType gdata_picasaweb_service_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataPicasaWebService, g_object_unref)
GDataPicasaWebService *gdata_picasaweb_service_new (GDataAuthorizer *authorizer) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
diff --git a/gdata/services/picasaweb/gdata-picasaweb-user.h b/gdata/services/picasaweb/gdata-picasaweb-user.h
index 8757a69c..e8f6f11c 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-user.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-user.h
@@ -68,6 +68,7 @@ typedef struct {
} GDataPicasaWebUserClass;
GType gdata_picasaweb_user_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataPicasaWebUser, g_object_unref)
const gchar *gdata_picasaweb_user_get_user (GDataPicasaWebUser *self) G_GNUC_PURE;
const gchar *gdata_picasaweb_user_get_nickname (GDataPicasaWebUser *self) G_GNUC_PURE;