[libgdata] picasaweb: Add g_autoptr() support for all PicasaWeb classes
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] picasaweb: Add g_autoptr() support for all PicasaWeb classes
- Date: Wed, 9 Aug 2017 14:41:38 +0000 (UTC)
commit fa9ad32bb72e9586d36ba5fec5a94a35a5df7e2c
Author: Philip Withnall <withnall endlessm com>
Date: Wed Aug 9 15:40:47 2017 +0100
picasaweb: Add g_autoptr() support for all PicasaWeb classes
Signed-off-by: Philip Withnall <withnall endlessm com>
gdata/services/picasaweb/gdata-picasaweb-album.h | 1 +
gdata/services/picasaweb/gdata-picasaweb-comment.h | 1 +
gdata/services/picasaweb/gdata-picasaweb-feed.h | 1 +
gdata/services/picasaweb/gdata-picasaweb-file.h | 1 +
gdata/services/picasaweb/gdata-picasaweb-query.h | 1 +
gdata/services/picasaweb/gdata-picasaweb-service.h | 1 +
gdata/services/picasaweb/gdata-picasaweb-user.h | 1 +
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 9851cb8..e228aca 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 138297c..af48a3c 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 2f7d6c5..14a8688 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 ca129de..1bd9f0f 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 f6f4046..8c9492f 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 377e7cc..f144edb 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 8757a69..e8f6f11 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]