[librest/tintou/annotations: 4/4] Name the RestOAuth2Error enum




commit a030c1f564dd971cd530d967dc94bf5a5bb217aa
Author: Corentin Noël <corentin noel collabora com>
Date:   Tue Aug 9 11:33:04 2022 +0200

    Name the RestOAuth2Error enum
    
    This allows it to be used in the GObject introspection

 rest/rest-oauth2-proxy.h | 4 ++--
 1 file 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 ();


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