about summary refs log tree commit diff
path: root/src/supplicant-manager/nm-supplicant-interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplicant-manager/nm-supplicant-interface.h')
-rw-r--r--src/supplicant-manager/nm-supplicant-interface.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/supplicant-manager/nm-supplicant-interface.h b/src/supplicant-manager/nm-supplicant-interface.h
index b99c0f26..2f0233cf 100644
--- a/src/supplicant-manager/nm-supplicant-interface.h
+++ b/src/supplicant-manager/nm-supplicant-interface.h
@@ -64,6 +64,12 @@ enum {
 #define NM_SUPPLICANT_INTERFACE_CONNECTION_ERROR "connection-error"
 #define NM_SUPPLICANT_INTERFACE_CREDENTIALS_REQUEST "credentials-request"
 
+typedef enum {
+	AP_SUPPORT_UNKNOWN = 0,  /* Can't detect whether supported or not */
+	AP_SUPPORT_NO = 1,       /* AP mode definitely not supported */
+	AP_SUPPORT_YES = 2,      /* AP mode definitely supported */
+} ApSupport;
+
 struct _NMSupplicantInterface {
 	GObject parent;
 };
@@ -76,7 +82,8 @@ typedef struct {
 	/* change in the interface's state */
 	void (*state)            (NMSupplicantInterface * iface,
 	                          guint32 new_state,
-	                          guint32 old_state);
+	                          guint32 old_state,
+	                          int disconnect_reason);
 
 	/* interface was removed by the supplicant */
 	void (*removed)          (NMSupplicantInterface * iface);
@@ -117,6 +124,7 @@ NMSupplicantInterface * nm_supplicant_interface_new (NMSupplicantManager * smgr,
                                                      const char *ifname,
                                                      gboolean is_wireless,
                                                      gboolean fast_supported,
+                                                     ApSupport ap_support,
                                                      gboolean start_now);
 
 gboolean nm_supplicant_interface_set_config (NMSupplicantInterface * iface,
@@ -149,4 +157,9 @@ gboolean nm_supplicant_interface_credentials_reply (NMSupplicantInterface *self,
                                                     const char *value,
                                                     GError **error);
 
+ApSupport nm_supplicant_interface_get_ap_support (NMSupplicantInterface *self);
+
+void nm_supplicant_interface_set_ap_support (NMSupplicantInterface *self,
+                                             ApSupport apmode);
+
 #endif	/* NM_SUPPLICANT_INTERFACE_H */