summaryrefslogtreecommitdiff
path: root/src/ipv4.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-02-15 15:51:49 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-02-15 18:05:32 +0100
commita1530efdb8f9da676ff3edaa6cc848dd40524333 (patch)
tree1831a934a300ffe57266275479866f60e9381733 /src/ipv4.c
parent460ad9cff5ff0850e1c860ca3f7627c6eb7e0575 (diff)
downloadconnman-a1530efdb8f9da676ff3edaa6cc848dd40524333.tar.gz
connman-a1530efdb8f9da676ff3edaa6cc848dd40524333.tar.bz2
connman-a1530efdb8f9da676ff3edaa6cc848dd40524333.zip
service: Refactor Service nameserver API
__connman_service_append/remove_namerserver() is renamed to __connman_service_nameserver_append/remove to be more consistent with the other Service API naming. Also the semantic changes to append/remove instead of set/clear. The list of configured nameservers takes preference over the list of discovered (DHCP, VPN, ...) nameservers.
Diffstat (limited to 'src/ipv4.c')
-rw-r--r--src/ipv4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipv4.c b/src/ipv4.c
index f6e436ce..f7b664bf 100644
--- a/src/ipv4.c
+++ b/src/ipv4.c
@@ -84,7 +84,7 @@ static int ipv4_probe(struct connman_element *element)
__connman_service_set_proxy_autoconfig(service, pac);
if (nameserver != NULL)
- __connman_service_append_nameserver(service, nameserver);
+ __connman_service_nameserver_append(service, nameserver);
connman_timeserver_append(timeserver);
@@ -139,7 +139,7 @@ static void ipv4_remove(struct connman_element *element)
struct connman_service *service;
service = __connman_element_get_service(element);
- __connman_service_remove_nameserver(service, nameserver);
+ __connman_service_nameserver_remove(service, nameserver);
}
prefixlen = __connman_ipconfig_netmask_prefix_len(netmask);