[gnome-software] trivial: Add GsAuthAction



commit ec347947286bff2f32399ec3026a956bfbba9d7f
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jun 10 15:35:44 2016 +0100

    trivial: Add GsAuthAction

 src/gs-auth.h |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-auth.h b/src/gs-auth.h
index 9ce1e1f..b841e9c 100644
--- a/src/gs-auth.h
+++ b/src/gs-auth.h
@@ -46,6 +46,24 @@ typedef enum {
        GS_AUTH_FLAG_LAST
 } GsAuthFlags;
 
+/**
+ * GsAuthAction:
+ * @GS_AUTH_ACTION_LOGIN:              Login action
+ * @GS_AUTH_ACTION_LOGOUT:             Logout action
+ * @GS_AUTH_ACTION_REGISTER:           Register action
+ * @GS_AUTH_ACTION_LOST_PASSWORD:      Lost password action
+ *
+ * The actions that can be performed on an authentication.
+ **/
+typedef enum {
+       GS_AUTH_ACTION_LOGIN,
+       GS_AUTH_ACTION_LOGOUT,
+       GS_AUTH_ACTION_REGISTER,
+       GS_AUTH_ACTION_LOST_PASSWORD,
+       /*< private >*/
+       GS_AUTH_ACTION_LAST
+} GsAuthAction;
+
 GsAuth         *gs_auth_new                    (const gchar    *provider_id);
 const gchar    *gs_auth_get_provider_id        (GsAuth         *auth);
 const gchar    *gs_auth_get_provider_name      (GsAuth         *auth);


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