summaryrefslogtreecommitdiff
path: root/plugins/supplicant.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-07-03 09:46:23 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-07-03 09:46:23 +0200
commit016cca4c6be704b306db9551c1f7cb2a91348938 (patch)
tree62cd4a6da025cd8584b5ee17bb3a074613ce71a1 /plugins/supplicant.h
parent5ba85251a318e3c28e723264349698e4ed327e79 (diff)
downloadconnman-016cca4c6be704b306db9551c1f7cb2a91348938.tar.gz
connman-016cca4c6be704b306db9551c1f7cb2a91348938.tar.bz2
connman-016cca4c6be704b306db9551c1f7cb2a91348938.zip
Rewrite supplicant support for new element infrastructure
Diffstat (limited to 'plugins/supplicant.h')
-rw-r--r--plugins/supplicant.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/plugins/supplicant.h b/plugins/supplicant.h
index 1ef96d7e..3ba062a5 100644
--- a/plugins/supplicant.h
+++ b/plugins/supplicant.h
@@ -19,17 +19,31 @@
*
*/
-#include <connman/iface.h>
+#include <connman/element.h>
#define SUPPLICANT_NAME "fi.epitest.hostap.WPASupplicant"
#define SUPPLICANT_INTF "fi.epitest.hostap.WPASupplicant"
#define SUPPLICANT_PATH "/fi/epitest/hostap/WPASupplicant"
-int __supplicant_start(struct connman_iface *iface);
-int __supplicant_stop(struct connman_iface *iface);
+struct supplicant_network {
+ gchar *identifier;
+ GByteArray *ssid;
+ guint capabilities;
+ gboolean has_wep;
+ gboolean has_wpa;
+ gboolean has_rsn;
+};
-int __supplicant_scan(struct connman_iface *iface);
+struct supplicant_callback {
+ void (*scan_result) (struct connman_element *element,
+ struct supplicant_network *network);
+};
-int __supplicant_connect(struct connman_iface *iface,
- const char *network, const char *passphrase);
-int __supplicant_disconnect(struct connman_iface *iface);
+int __supplicant_start(struct connman_element *element,
+ struct supplicant_callback *callback);
+int __supplicant_stop(struct connman_element *element);
+
+int __supplicant_scan(struct connman_element *element);
+
+int __supplicant_connect(struct connman_element *element);
+int __supplicant_disconnect(struct connman_element *element);