[librest/tintou/annotations] Name the RestOAuth2Error enum



commit d6d253547cf81c3c5cd286b4e9238a6481f87629
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]