[libgdata] documents: Add g_autoptr() support for all Drive classes
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] documents: Add g_autoptr() support for all Drive classes
- Date: Wed, 9 Aug 2017 13:57:27 +0000 (UTC)
commit 3ce9cebcbdb52faf5faaaafcb40340ff9dee1585
Author: Philip Withnall <withnall endlessm com>
Date: Wed Aug 9 14:56:29 2017 +0100
documents: Add g_autoptr() support for all Drive classes
Signed-off-by: Philip Withnall <withnall endlessm com>
.../documents/gdata-documents-access-rule.h | 1 +
.../services/documents/gdata-documents-document.h | 1 +
gdata/services/documents/gdata-documents-drawing.h | 1 +
gdata/services/documents/gdata-documents-entry.h | 1 +
gdata/services/documents/gdata-documents-feed.h | 1 +
gdata/services/documents/gdata-documents-folder.h | 2 ++
.../services/documents/gdata-documents-metadata.h | 1 +
gdata/services/documents/gdata-documents-pdf.h | 1 +
.../documents/gdata-documents-presentation.h | 1 +
gdata/services/documents/gdata-documents-query.h | 1 +
gdata/services/documents/gdata-documents-service.h | 2 ++
.../documents/gdata-documents-spreadsheet.h | 1 +
gdata/services/documents/gdata-documents-text.h | 1 +
.../documents/gdata-documents-upload-query.h | 1 +
14 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/gdata/services/documents/gdata-documents-access-rule.h
b/gdata/services/documents/gdata-documents-access-rule.h
index 3925fe7..fc78e95 100644
--- a/gdata/services/documents/gdata-documents-access-rule.h
+++ b/gdata/services/documents/gdata-documents-access-rule.h
@@ -65,6 +65,7 @@ typedef struct {
} GDataDocumentsAccessRuleClass;
GType gdata_documents_access_rule_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsAccessRule, g_object_unref)
GDataDocumentsAccessRule *
gdata_documents_access_rule_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
diff --git a/gdata/services/documents/gdata-documents-document.h
b/gdata/services/documents/gdata-documents-document.h
index 24c9291..675d56d 100644
--- a/gdata/services/documents/gdata-documents-document.h
+++ b/gdata/services/documents/gdata-documents-document.h
@@ -67,6 +67,7 @@ typedef struct {
} GDataDocumentsDocumentClass;
GType gdata_documents_document_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsDocument, g_object_unref)
GDataDocumentsDocument *gdata_documents_document_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT
G_GNUC_MALLOC;
diff --git a/gdata/services/documents/gdata-documents-drawing.h
b/gdata/services/documents/gdata-documents-drawing.h
index 27441e8..d3e2014 100644
--- a/gdata/services/documents/gdata-documents-drawing.h
+++ b/gdata/services/documents/gdata-documents-drawing.h
@@ -121,6 +121,7 @@ typedef struct {
} GDataDocumentsDrawingClass;
GType gdata_documents_drawing_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsDrawing, g_object_unref)
GDataDocumentsDrawing *gdata_documents_drawing_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
diff --git a/gdata/services/documents/gdata-documents-entry.h
b/gdata/services/documents/gdata-documents-entry.h
index c8731e9..07e05ab 100644
--- a/gdata/services/documents/gdata-documents-entry.h
+++ b/gdata/services/documents/gdata-documents-entry.h
@@ -96,6 +96,7 @@ typedef struct {
} GDataDocumentsEntryClass;
GType gdata_documents_entry_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsEntry, g_object_unref)
gchar *gdata_documents_entry_get_path (GDataDocumentsEntry *self) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
diff --git a/gdata/services/documents/gdata-documents-feed.h b/gdata/services/documents/gdata-documents-feed.h
index 134f375..22f1fec 100644
--- a/gdata/services/documents/gdata-documents-feed.h
+++ b/gdata/services/documents/gdata-documents-feed.h
@@ -66,6 +66,7 @@ typedef struct {
} GDataDocumentsFeedClass;
GType gdata_documents_feed_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsFeed, g_object_unref)
G_END_DECLS
diff --git a/gdata/services/documents/gdata-documents-folder.h
b/gdata/services/documents/gdata-documents-folder.h
index 9dc782b..9949c99 100644
--- a/gdata/services/documents/gdata-documents-folder.h
+++ b/gdata/services/documents/gdata-documents-folder.h
@@ -67,6 +67,8 @@ typedef struct {
} GDataDocumentsFolderClass;
GType gdata_documents_folder_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsFolder, g_object_unref)
+
GDataDocumentsFolder *gdata_documents_folder_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
G_END_DECLS
diff --git a/gdata/services/documents/gdata-documents-metadata.h
b/gdata/services/documents/gdata-documents-metadata.h
index f0c0b80..c9c8d4a 100644
--- a/gdata/services/documents/gdata-documents-metadata.h
+++ b/gdata/services/documents/gdata-documents-metadata.h
@@ -67,6 +67,7 @@ typedef struct {
} GDataDocumentsMetadataClass;
GType gdata_documents_metadata_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsMetadata, g_object_unref)
goffset gdata_documents_metadata_get_quota_total (GDataDocumentsMetadata *self) G_GNUC_PURE;
goffset gdata_documents_metadata_get_quota_used (GDataDocumentsMetadata *self) G_GNUC_PURE;
diff --git a/gdata/services/documents/gdata-documents-pdf.h b/gdata/services/documents/gdata-documents-pdf.h
index aa43b8d..701a137 100644
--- a/gdata/services/documents/gdata-documents-pdf.h
+++ b/gdata/services/documents/gdata-documents-pdf.h
@@ -68,6 +68,7 @@ typedef struct {
} GDataDocumentsPdfClass;
GType gdata_documents_pdf_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsPdf, g_object_unref)
GDataDocumentsPdf *gdata_documents_pdf_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
diff --git a/gdata/services/documents/gdata-documents-presentation.h
b/gdata/services/documents/gdata-documents-presentation.h
index ba7e283..5ab4b65 100644
--- a/gdata/services/documents/gdata-documents-presentation.h
+++ b/gdata/services/documents/gdata-documents-presentation.h
@@ -138,6 +138,7 @@ typedef struct {
} GDataDocumentsPresentationClass;
GType gdata_documents_presentation_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsPresentation, g_object_unref)
GDataDocumentsPresentation *gdata_documents_presentation_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT
G_GNUC_MALLOC;
diff --git a/gdata/services/documents/gdata-documents-query.h
b/gdata/services/documents/gdata-documents-query.h
index 73e2717..dfe369c 100644
--- a/gdata/services/documents/gdata-documents-query.h
+++ b/gdata/services/documents/gdata-documents-query.h
@@ -68,6 +68,7 @@ typedef struct {
} GDataDocumentsQueryClass;
GType gdata_documents_query_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsQuery, g_object_unref)
GDataDocumentsQuery *gdata_documents_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
GDataDocumentsQuery *gdata_documents_query_new_with_limits (const gchar *q,
diff --git a/gdata/services/documents/gdata-documents-service.h
b/gdata/services/documents/gdata-documents-service.h
index 6b2fc90..ab2ea7e 100644
--- a/gdata/services/documents/gdata-documents-service.h
+++ b/gdata/services/documents/gdata-documents-service.h
@@ -90,6 +90,8 @@ typedef struct {
GType gdata_documents_service_get_type (void) G_GNUC_CONST;
GQuark gdata_documents_service_error_quark (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsService, g_object_unref)
+
GDataDocumentsService *gdata_documents_service_new (GDataAuthorizer *authorizer) G_GNUC_WARN_UNUSED_RESULT
G_GNUC_MALLOC;
GDataAuthorizationDomain *gdata_documents_service_get_primary_authorization_domain (void) G_GNUC_CONST;
diff --git a/gdata/services/documents/gdata-documents-spreadsheet.h
b/gdata/services/documents/gdata-documents-spreadsheet.h
index ccbac36..438e93f 100644
--- a/gdata/services/documents/gdata-documents-spreadsheet.h
+++ b/gdata/services/documents/gdata-documents-spreadsheet.h
@@ -147,6 +147,7 @@ typedef struct {
} GDataDocumentsSpreadsheetClass;
GType gdata_documents_spreadsheet_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsSpreadsheet, g_object_unref)
GDataDocumentsSpreadsheet *gdata_documents_spreadsheet_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT
G_GNUC_MALLOC;
diff --git a/gdata/services/documents/gdata-documents-text.h b/gdata/services/documents/gdata-documents-text.h
index adc9369..4645524 100644
--- a/gdata/services/documents/gdata-documents-text.h
+++ b/gdata/services/documents/gdata-documents-text.h
@@ -183,6 +183,7 @@ typedef struct {
} GDataDocumentsTextClass;
GType gdata_documents_text_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsText, g_object_unref)
GDataDocumentsText *gdata_documents_text_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
diff --git a/gdata/services/documents/gdata-documents-upload-query.h
b/gdata/services/documents/gdata-documents-upload-query.h
index 4dd1deb..30582e9 100644
--- a/gdata/services/documents/gdata-documents-upload-query.h
+++ b/gdata/services/documents/gdata-documents-upload-query.h
@@ -67,6 +67,7 @@ typedef struct {
} GDataDocumentsUploadQueryClass;
GType gdata_documents_upload_query_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDocumentsUploadQuery, g_object_unref)
GDataDocumentsUploadQuery *gdata_documents_upload_query_new (void) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]