void __connman_device_set_network(struct connman_device *device,
struct connman_network *network);
-void __connman_device_disconnect(struct connman_device *device);
+int __connman_device_connect(struct connman_device *device);
+int __connman_device_disconnect(struct connman_device *device);
connman_bool_t __connman_device_has_driver(struct connman_device *device);
return set_carrier(device, device->carrier);
}
-void __connman_device_disconnect(struct connman_device *device)
+int __connman_device_connect(struct connman_device *device)
+{
+ DBG("device %p", device);
+
+ return 0;
+}
+
+int __connman_device_disconnect(struct connman_device *device)
{
GHashTableIter iter;
gpointer key, value;
if (connman_network_get_connected(network) == TRUE)
__connman_network_disconnect(network);
}
+
+ return 0;
}
static void connect_known_network(struct connman_device *device)