*/
int connman_technology_driver_register(struct connman_technology_driver *driver)
{
- GSList *list;
- struct connman_technology *technology;
-
- DBG("driver %p name %s", driver, driver->name);
+ DBG("Registering %s driver", driver->name);
driver_list = g_slist_insert_sorted(driver_list, driver,
compare_priority);
- for (list = technology_list; list; list = list->next) {
- technology = list->data;
-
- if (technology->driver != NULL)
- continue;
-
- if (technology->type == driver->type)
- technology->driver = driver;
- }
-
return 0;
}
GSList *list;
struct connman_technology *technology;
- DBG("driver %p name %s", driver, driver->name);
+ DBG("Unregistering driver %p name %s", driver, driver->name);
for (list = technology_list; list; list = list->next) {
technology = list->data;