[libgdata/wip/rishi/upload-stream-autoptr] core: Add g_autoptr() support for GDataUploadStream




commit 83d9f77484724b0625eb211a620b33851fa6e4ad
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Aug 25 23:05:22 2020 +0200

    core: Add g_autoptr() support for GDataUploadStream

 gdata/gdata-upload-stream.h | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gdata/gdata-upload-stream.h b/gdata/gdata-upload-stream.h
index 36784aeb..d4a3c7b9 100644
--- a/gdata/gdata-upload-stream.h
+++ b/gdata/gdata-upload-stream.h
@@ -98,6 +98,7 @@ typedef struct {
 } GDataUploadStreamClass;
 
 GType gdata_upload_stream_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataUploadStream, g_object_unref)
 
 GOutputStream *gdata_upload_stream_new (GDataService *service, GDataAuthorizationDomain *domain, const gchar 
*method, const gchar *upload_uri,
                                         GDataEntry *entry, const gchar *slug, const gchar *content_type,


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