summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2022-08-09 11:33:04 +0200
committerCorentin Noël <corentin.noel@collabora.com>2022-08-09 11:43:58 +0200
commita030c1f564dd971cd530d967dc94bf5a5bb217aa (patch)
tree8e694ef316c5de9367e513f772bf3d096cae323b
parent89c2b46fcad2b4b168e14b62a794417036532208 (diff)
downloadlibrest-a030c1f564dd971cd530d967dc94bf5a5bb217aa.tar.gz
Name the RestOAuth2Error enum
This allows it to be used in the GObject introspection
-rw-r--r--rest/rest-oauth2-proxy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest/rest-oauth2-proxy.h b/rest/rest-oauth2-proxy.h
index dd4148e..c63d33e 100644
--- a/rest/rest-oauth2-proxy.h
+++ b/rest/rest-oauth2-proxy.h
@@ -37,10 +37,10 @@ struct _RestOAuth2ProxyClass
gpointer padding[8];
};
-enum {
+typedef enum {
REST_OAUTH2_ERROR_NO_REFRESH_TOKEN,
REST_OAUTH2_ERROR_ACCESS_TOKEN_EXPIRED,
-};
+} RestOAuth2Error;
#define REST_OAUTH2_ERROR rest_oauth2_error_quark ()
GQuark rest_oauth2_error_quark ();