summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2018-02-12 12:27:29 +0000
committerPhilip Withnall <withnall@endlessm.com>2018-02-12 12:27:51 +0000
commitaade3a9b7ef55f1e64753e379f8e56fcc4bea8e5 (patch)
tree74d40a104f7f14ae7c02bdfab61a1235e6d3d660
parentf8cd424a5594ed6b2680d860b33d3933f64f1c20 (diff)
downloadlibgdata-aade3a9b7ef55f1e64753e379f8e56fcc4bea8e5.tar.gz
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
-rw-r--r--gdata/gdata-authorizer.h1
-rw-r--r--gdata/gdata-client-login-authorizer.h1
-rw-r--r--gdata/gdata-goa-authorizer.h2
-rw-r--r--gdata/gdata-oauth1-authorizer.h1
-rw-r--r--gdata/gdata-oauth2-authorizer.h1
-rw-r--r--gdata/tests/gdata-dummy-authorizer.h1
6 files changed, 7 insertions, 0 deletions
diff --git a/gdata/gdata-authorizer.h b/gdata/gdata-authorizer.h
index 4913c50e..ed1aa765 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 3db4c5c7..7e13ca1c 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 df9e7f66..34b8747c 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 9bb79433..6e16a4bc 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 be5abb17..97cd1e25 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 de797f9e..a739a0ea 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;