*
* Connection Manager
*
- * Copyright (C) 2007 Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-2009 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
*
*/
-#include <connman/iface.h>
+#include <connman/device.h>
+#include <connman/network.h>
-int __supplicant_start(struct connman_iface *iface);
-int __supplicant_stop(struct connman_iface *iface);
+struct supplicant_driver {
+ const char *name;
+ void (*probe) (void);
+ void (*remove) (void);
+};
-int __supplicant_connect(struct connman_iface *iface);
+int supplicant_register(struct supplicant_driver *driver);
+void supplicant_unregister(struct supplicant_driver *driver);
+
+int supplicant_start(struct connman_device *device);
+int supplicant_stop(struct connman_device *device);
+int supplicant_scan(struct connman_device *device);
+
+int supplicant_connect(struct connman_network *network);
+int supplicant_disconnect(struct connman_network *network);