summaryrefslogtreecommitdiff
path: root/src/supplicant/nm-supplicant-interface.h
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2019-08-22 10:19:24 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2019-10-15 08:34:31 +0200
commit5b4f4a4c30bf29757582e3c15b63ba2199daeece (patch)
tree55221d22aa6d493a5cad28ab01fa050f312fb603 /src/supplicant/nm-supplicant-interface.h
parent292ba430a0dab4e08db2212f73dc515bbf534d9f (diff)
supplicant: export authentication state
Add a property to the supplicant to indicate the current state of the authentication process.
Diffstat (limited to 'src/supplicant/nm-supplicant-interface.h')
-rw-r--r--src/supplicant/nm-supplicant-interface.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/supplicant/nm-supplicant-interface.h b/src/supplicant/nm-supplicant-interface.h
index a723fadb9..3580f7544 100644
--- a/src/supplicant/nm-supplicant-interface.h
+++ b/src/supplicant/nm-supplicant-interface.h
@@ -31,6 +31,14 @@ typedef enum {
NM_SUPPLICANT_INTERFACE_STATE_DOWN,
} NMSupplicantInterfaceState;
+typedef enum {
+ NM_SUPPLICANT_AUTH_STATE_UNKNOWN,
+ NM_SUPPLICANT_AUTH_STATE_STARTED,
+ NM_SUPPLICANT_AUTH_STATE_SUCCESS,
+ NM_SUPPLICANT_AUTH_STATE_FAILURE,
+ _NM_SUPPLICANT_AUTH_STATE_NUM,
+} NMSupplicantAuthState;
+
#define NM_TYPE_SUPPLICANT_INTERFACE (nm_supplicant_interface_get_type ())
#define NM_SUPPLICANT_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SUPPLICANT_INTERFACE, NMSupplicantInterface))
#define NM_SUPPLICANT_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SUPPLICANT_INTERFACE, NMSupplicantInterfaceClass))
@@ -57,6 +65,7 @@ typedef enum {
#define NM_SUPPLICANT_INTERFACE_WFD_SUPPORT "wfd-support"
#define NM_SUPPLICANT_INTERFACE_FT_SUPPORT "ft-support"
#define NM_SUPPLICANT_INTERFACE_SHA384_SUPPORT "sha384-support"
+#define NM_SUPPLICANT_INTERFACE_AUTH_STATE "auth-state"
/* Signals */
#define NM_SUPPLICANT_INTERFACE_STATE "state"
@@ -201,4 +210,6 @@ void nm_supplicant_interface_enroll_wps (NMSupplicantInterface *self,
void nm_supplicant_interface_cancel_wps (NMSupplicantInterface *self);
+NMSupplicantAuthState nm_supplicant_interface_get_auth_state (NMSupplicantInterface *self);
+
#endif /* __NM_SUPPLICANT_INTERFACE_H__ */