From: Daniel Wagner <daniel.wag...@bmw-carit.de> --- src/connman.h | 4 ++++ src/service.c | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/src/connman.h b/src/connman.h index c71e180..ee025f5 100644 --- a/src/connman.h +++ b/src/connman.h @@ -279,6 +279,10 @@ void __connman_service_timeserver_append(struct connman_service *service, const char *timeserver); void __connman_service_timeserver_remove(struct connman_service *service, const char *timeserver); +void __connman_service_pac_append(struct connman_service *service, + const char *pac); +void __connman_service_pac_remove(struct connman_service *service, + const char *pac); int __connman_ipconfig_load(struct connman_ipconfig *ipconfig, GKeyFile *keyfile, const char *identifier, const char *prefix); diff --git a/src/service.c b/src/service.c index e35c75e..32e03a5 100644 --- a/src/service.c +++ b/src/service.c @@ -1901,6 +1901,26 @@ void __connman_service_timeserver_remove(struct connman_service *service, service->timeserver = NULL; } +void __connman_service_pac_append(struct connman_service *service, + const char *pac) +{ + if (pac == NULL) + return; + + g_free(service->pac); + service->pac = g_strdup(pac); +} + +void __connman_service_pac_remove(struct connman_service *service, + const char *pac) +{ + if (pac == NULL) + return; + + g_free(service->pac); + service->pac = NULL; +} + void __connman_service_set_passphrase(struct connman_service *service, const char* passphrase) { -- 1.7.4 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman