From: Daniel Wagner <[email protected]>
---
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 14bfc6b..7524494 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -275,6 +275,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 007307b..f449357 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1797,6 +1797,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
[email protected]
http://lists.connman.net/listinfo/connman