summaryrefslogtreecommitdiff
path: root/src/connman.h
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/connman.h
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/connman.h')
-rw-r--r--src/connman.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/connman.h b/src/connman.h
index 6202db31..ba1426ee 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -495,10 +495,10 @@ struct connman_service *__connman_service_connect_type(enum connman_service_type
const char *__connman_service_type2string(enum connman_service_type type);
-void __connman_service_append_nameserver(struct connman_service *service,
- const char *nameserver);
-void __connman_service_remove_nameserver(struct connman_service *service,
- const char *nameserver);
+int __connman_service_nameserver_append(struct connman_service *service,
+ const char *nameserver);
+int __connman_service_nameserver_remove(struct connman_service *service,
+ const char *nameserver);
void __connman_service_nameserver_add_routes(struct connman_service *service,
const char *gw);
void __connman_service_nameserver_del_routes(struct connman_service *service);