-struct supplicant_callback {
- void (*state_change) (struct connman_device *device,
- enum supplicant_state state);
- void (*clear_results) (struct connman_device *device);
- void (*scan_result) (struct connman_device *device,
- struct supplicant_network *network);
-};
-
-void __supplicant_activate(DBusConnection *conn);
-
-int __supplicant_init(DBusConnection *conn);
-void __supplicant_exit(void);
-
-int __supplicant_start(struct connman_device *device,
- struct supplicant_callback *callback);
-int __supplicant_stop(struct connman_device *device);
+int supplicant_register(struct supplicant_driver *driver);
+void supplicant_unregister(struct supplicant_driver *driver);