diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-12 01:39:10 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-12 01:39:10 +0100 |
commit | 514fed50ad6be8459b5d1836e71b4eb1fd7cbd93 (patch) | |
tree | cfdd80e79ce087d0d86b67eef5c670108e880185 | |
parent | 45fcb10851cbcb5c3f13afde4ab5192ed9b2c5db (diff) | |
download | connman-514fed50ad6be8459b5d1836e71b4eb1fd7cbd93.tar.gz connman-514fed50ad6be8459b5d1836e71b4eb1fd7cbd93.tar.bz2 connman-514fed50ad6be8459b5d1836e71b4eb1fd7cbd93.zip |
service: Define proxy setting helper
-rw-r--r-- | include/service.h | 1 | ||||
-rw-r--r-- | src/service.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/service.h b/include/service.h index e67dd422..dd857e20 100644 --- a/include/service.h +++ b/include/service.h @@ -103,6 +103,7 @@ char *connman_service_get_interface(struct connman_service *service); const char *connman_service_get_domainname(struct connman_service *service); const char *connman_service_get_nameserver(struct connman_service *service); +void connman_service_set_proxy_method(struct connman_service *service, enum connman_service_proxy_method method); enum connman_service_proxy_method connman_service_get_proxy_method(struct connman_service *service); char **connman_service_get_proxy_servers(struct connman_service *service); char **connman_service_get_proxy_excludes(struct connman_service *service); diff --git a/src/service.c b/src/service.c index 7341099a..9afdc902 100644 --- a/src/service.c +++ b/src/service.c @@ -1548,6 +1548,16 @@ const char *connman_service_get_nameserver(struct connman_service *service) return service->nameserver; } +void connman_service_set_proxy_method(struct connman_service *service, + enum connman_service_proxy_method method) +{ + if (service == NULL) + return; + + service->proxy = method; + +} + enum connman_service_proxy_method connman_service_get_proxy_method( struct connman_service *service) { |