From a1530efdb8f9da676ff3edaa6cc848dd40524333 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Tue, 15 Feb 2011 15:51:49 +0100 Subject: 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. --- plugins/pacrunner.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/pacrunner.c b/plugins/pacrunner.c index f914eeb0..14d04ced 100644 --- a/plugins/pacrunner.c +++ b/plugins/pacrunner.c @@ -178,10 +178,11 @@ static void create_proxy_configuration(void) connman_dbus_dict_append_array(&dict, "Domains", DBUS_TYPE_STRING, append_string, &str); - str = connman_service_get_nameserver(default_service); - if (str != NULL) + str_list = connman_service_get_nameservers(default_service); + if (str_list != NULL) connman_dbus_dict_append_array(&dict, "Nameservers", - DBUS_TYPE_STRING, append_string, &str); + DBUS_TYPE_STRING, append_string_list, + &str_list); connman_dbus_dict_close(&iter, &dict); -- cgit v1.2.3