[libgdata] gdata: Add some g_autoptr() declarations for authorizer classes



commit aade3a9b7ef55f1e64753e379f8e56fcc4bea8e5
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Feb 12 12:27:29 2018 +0000

    gdata: Add some g_autoptr() declarations for authorizer classes
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=793367

 gdata/gdata-authorizer.h              |    1 +
 gdata/gdata-client-login-authorizer.h |    1 +
 gdata/gdata-goa-authorizer.h          |    2 ++
 gdata/gdata-oauth1-authorizer.h       |    1 +
 gdata/gdata-oauth2-authorizer.h       |    1 +
 gdata/tests/gdata-dummy-authorizer.h  |    1 +
 6 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gdata/gdata-authorizer.h b/gdata/gdata-authorizer.h
index 4913c50..ed1aa76 100644
--- a/gdata/gdata-authorizer.h
+++ b/gdata/gdata-authorizer.h
@@ -77,6 +77,7 @@ typedef struct {
 } GDataAuthorizerInterface;
 
 GType gdata_authorizer_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataAuthorizer, g_object_unref)
 
 void gdata_authorizer_process_request (GDataAuthorizer *self, GDataAuthorizationDomain *domain, SoupMessage 
*message);
 gboolean gdata_authorizer_is_authorized_for_domain (GDataAuthorizer *self, GDataAuthorizationDomain *domain);
diff --git a/gdata/gdata-client-login-authorizer.h b/gdata/gdata-client-login-authorizer.h
index 3db4c5c..7e13ca1 100644
--- a/gdata/gdata-client-login-authorizer.h
+++ b/gdata/gdata-client-login-authorizer.h
@@ -109,6 +109,7 @@ typedef struct {
 } GDataClientLoginAuthorizerClass;
 
 GType gdata_client_login_authorizer_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataClientLoginAuthorizer, g_object_unref)
 
 GDataClientLoginAuthorizer *gdata_client_login_authorizer_new (const gchar *client_id, GType service_type) 
G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataClientLoginAuthorizer *gdata_client_login_authorizer_new_for_authorization_domains (const gchar 
*client_id, GList *authorization_domains)
diff --git a/gdata/gdata-goa-authorizer.h b/gdata/gdata-goa-authorizer.h
index df9e7f6..34b8747 100644
--- a/gdata/gdata-goa-authorizer.h
+++ b/gdata/gdata-goa-authorizer.h
@@ -69,6 +69,8 @@ typedef struct {
 } GDataGoaAuthorizerClass;
 
 GType gdata_goa_authorizer_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataGoaAuthorizer, g_object_unref)
+
 GDataGoaAuthorizer *gdata_goa_authorizer_new (GoaObject *goa_object) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GoaObject *gdata_goa_authorizer_get_goa_object (GDataGoaAuthorizer *self) G_GNUC_PURE;
 
diff --git a/gdata/gdata-oauth1-authorizer.h b/gdata/gdata-oauth1-authorizer.h
index 9bb7943..6e16a4b 100644
--- a/gdata/gdata-oauth1-authorizer.h
+++ b/gdata/gdata-oauth1-authorizer.h
@@ -67,6 +67,7 @@ typedef struct {
 } GDataOAuth1AuthorizerClass;
 
 GType gdata_oauth1_authorizer_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataOAuth1Authorizer, g_object_unref)
 
 GDataOAuth1Authorizer *gdata_oauth1_authorizer_new (const gchar *application_name, GType service_type) 
G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataOAuth1Authorizer *gdata_oauth1_authorizer_new_for_authorization_domains (const gchar *application_name,
diff --git a/gdata/gdata-oauth2-authorizer.h b/gdata/gdata-oauth2-authorizer.h
index be5abb1..97cd1e2 100644
--- a/gdata/gdata-oauth2-authorizer.h
+++ b/gdata/gdata-oauth2-authorizer.h
@@ -95,6 +95,7 @@ typedef struct {
 } GDataOAuth2AuthorizerClass;
 
 GType gdata_oauth2_authorizer_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataOAuth2Authorizer, g_object_unref)
 
 GDataOAuth2Authorizer *gdata_oauth2_authorizer_new (const gchar *client_id,
                                                     const gchar *client_secret,
diff --git a/gdata/tests/gdata-dummy-authorizer.h b/gdata/tests/gdata-dummy-authorizer.h
index de797f9..a739a0e 100644
--- a/gdata/tests/gdata-dummy-authorizer.h
+++ b/gdata/tests/gdata-dummy-authorizer.h
@@ -67,6 +67,7 @@ typedef struct {
 } GDataDummyAuthorizerClass;
 
 GType gdata_dummy_authorizer_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataDummyAuthorizer, g_object_unref)
 
 GDataDummyAuthorizer *gdata_dummy_authorizer_new (GType service_type) G_GNUC_WARN_UNUSED_RESULT 
G_GNUC_MALLOC;
 GDataDummyAuthorizer *gdata_dummy_authorizer_new_for_authorization_domains (GList *authorization_domains) 
G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;


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