{ },
};
-static void emit_devices_signal(void)
-{
- connman_dbus_property_changed_array(CONNMAN_MANAGER_PATH,
- CONNMAN_MANAGER_INTERFACE, "Devices",
- DBUS_TYPE_OBJECT_PATH, __connman_device_list, NULL);
-}
-
static int register_interface(struct connman_element *element)
{
struct connman_device *device = element->device;
device->registered = TRUE;
- emit_devices_signal();
-
return 0;
}
device->registered = FALSE;
- emit_devices_signal();
-
g_dbus_unregister_interface(connection, element->path,
CONNMAN_DEVICE_INTERFACE);
}
return err;
}
+ __connman_technology_add_device(device);
+
type = __connman_device_get_service_type(device);
__connman_notifier_register(type);
break;
}
+ if (__connman_udev_get_blocked(device->phyindex) == TRUE)
+ return 0;
+
if (device->offlinemode == FALSE &&
device->powered_persistent == TRUE)
__connman_device_enable(device);
type = __connman_device_get_service_type(device);
__connman_notifier_unregister(type);
+ __connman_technology_remove_device(device);
+
unregister_interface(&device->element);
if (device->driver->remove)