int __connman_config_init();
void __connman_config_cleanup(void);
+int __connman_config_provision_service(struct connman_service *service);
+
#include <connman/profile.h>
int __connman_profile_init();
service->profile = g_strdup(__connman_profile_active_ident());
- __connman_storage_load_service(service);
-
iter = g_sequence_insert_sorted(service_list, service,
service_compare, NULL);
DBG("path %s", service->path);
+ __connman_config_provision_service(service);
+
+ __connman_storage_load_service(service);
+
g_dbus_register_interface(connection, service->path,
CONNMAN_SERVICE_INTERFACE,
service_methods, service_signals,
NULL, service, NULL);
- __connman_storage_load_service(service);
-
iter = g_hash_table_lookup(service_hash, service->identifier);
if (iter != NULL)
g_sequence_sort_changed(iter, service_compare, NULL);
connman_ipconfig_set_method(service->ipconfig,
CONNMAN_IPCONFIG_METHOD_DHCP);
- __connman_storage_load_service(service);
-
connman_ipconfig_set_data(service->ipconfig, service);
connman_ipconfig_set_ops(service->ipconfig, &service_ops);
service_register(service);
- __connman_profile_changed(TRUE);
-
if (service->favorite == TRUE)
__connman_service_auto_connect();