void __connman_service_update_from_network(struct connman_network *network);
void __connman_service_remove_from_network(struct connman_network *network);
+void __connman_service_create_ipconfig(struct connman_service *service,
+ int index);
+struct connman_ipconfig *__connman_service_get_ipconfig(
+ struct connman_service *service);
const char *__connman_service_get_path(struct connman_service *service);
unsigned int __connman_service_get_order(struct connman_service *service);
struct connman_network *__connman_service_get_network(struct connman_service *service);
return service->network;
}
+struct connman_ipconfig *
+__connman_service_get_ipconfig(struct connman_service *service)
+{
+ if (service == NULL)
+ return NULL;
+
+ return service->ipconfig;
+}
+
/**
* __connman_service_set_favorite:
* @service: service structure
connman_ipconfig_set_ops(service->ipconfig, &service_ops);
}
+void __connman_service_create_ipconfig(struct connman_service *service,
+ int index)
+{
+ if (service->ipconfig != NULL)
+ return;
+
+ setup_ipconfig(service, index);
+}
+
/**
* __connman_service_lookup_from_network:
* @network: network structure