service: Allow plugins access to connman_service_create_ip4/6config
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 10 Aug 2012 09:58:58 +0000 (11:58 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 14 Aug 2012 05:59:11 +0000 (08:59 +0300)
include/service.h
src/connman.h
src/network.c
src/provider.c
src/service.c

index 460fdd4..717098c 100644 (file)
@@ -116,6 +116,11 @@ char **connman_service_get_proxy_excludes(struct connman_service *service);
 const char *connman_service_get_proxy_url(struct connman_service *service);
 const char *connman_service_get_proxy_autoconfig(struct connman_service *service);
 
+void connman_service_create_ip4config(struct connman_service *service,
+                                                               int index);
+void connman_service_create_ip6config(struct connman_service *service,
+                                                               int index);
+
 #ifdef __cplusplus
 }
 #endif
index e72bc2a..822c8eb 100644 (file)
@@ -573,11 +573,8 @@ struct connman_service *__connman_service_get_default(void);
 void __connman_service_update_from_network(struct connman_network *network);
 void __connman_service_remove_from_network(struct connman_network *network);
 void __connman_service_read_ip4config(struct connman_service *service);
-void __connman_service_create_ip4config(struct connman_service *service,
-                                                               int index);
 void __connman_service_read_ip6config(struct connman_service *service);
-void __connman_service_create_ip6config(struct connman_service *service,
-                                                               int index);
+
 struct connman_ipconfig *__connman_service_get_ip4config(
                                struct connman_service *service);
 struct connman_ipconfig *__connman_service_get_ip6config(
index bf01767..c37f128 100644 (file)
@@ -482,7 +482,7 @@ void connman_network_set_index(struct connman_network *network, int index)
                         * ipconfig layer yet, due to not being able to get
                         * a network index prior to creating a service.
                         */
-                       __connman_service_create_ip4config(service, index);
+                       connman_service_create_ip4config(service, index);
                else
                        __connman_ipconfig_set_index(ipconfig, index);
 
index 76e8478..52f3ade 100644 (file)
@@ -1118,7 +1118,7 @@ void connman_provider_set_index(struct connman_provider *provider, int index)
        ipconfig = __connman_service_get_ip4config(service);
 
        if (ipconfig == NULL) {
-               __connman_service_create_ip4config(service, index);
+               connman_service_create_ip4config(service, index);
 
                ipconfig = __connman_service_get_ip4config(service);
                if (ipconfig == NULL) {
@@ -1134,7 +1134,7 @@ void connman_provider_set_index(struct connman_provider *provider, int index)
        ipconfig = __connman_service_get_ip6config(service);
 
        if (ipconfig == NULL) {
-               __connman_service_create_ip6config(service, index);
+               connman_service_create_ip6config(service, index);
 
                ipconfig = __connman_service_get_ip6config(service);
                if (ipconfig == NULL) {
index d0843fc..cafd605 100644 (file)
@@ -5909,7 +5909,7 @@ void __connman_service_read_ip4config(struct connman_service *service)
        g_key_file_free(keyfile);
 }
 
-void __connman_service_create_ip4config(struct connman_service *service,
+void connman_service_create_ip4config(struct connman_service *service,
                                        int index)
 {
        DBG("ipv4 %p", service->ipconfig_ipv4);
@@ -5938,7 +5938,7 @@ void __connman_service_read_ip6config(struct connman_service *service)
        g_key_file_free(keyfile);
 }
 
-void __connman_service_create_ip6config(struct connman_service *service,
+void connman_service_create_ip6config(struct connman_service *service,
                                                                int index)
 {
        DBG("ipv6 %p", service->ipconfig_ipv6);