summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connman.h4
-rw-r--r--src/service.c15
2 files changed, 19 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index 733f87c..9c62116 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -692,6 +692,10 @@ struct connman_network *__connman_service_get_network(struct connman_service *se
enum connman_service_security __connman_service_get_security(struct connman_service *service);
const char *__connman_service_get_phase2(struct connman_service *service);
bool __connman_service_wps_enabled(struct connman_service *service);
+#if defined TIZEN_EXT
+void __connman_service_set_autoconnect(struct connman_service *service,
+ bool autoconnect);
+#endif
int __connman_service_set_favorite(struct connman_service *service,
bool favorite);
int __connman_service_set_favorite_delayed(struct connman_service *service,
diff --git a/src/service.c b/src/service.c
index fb4a61f..7cf4904 100644
--- a/src/service.c
+++ b/src/service.c
@@ -5562,6 +5562,21 @@ void __connman_service_update_search_domains(struct connman_service *service,
service->domains = g_strdupv(domains);
}
+#if defined TIZEN_EXT
+void __connman_service_set_autoconnect(struct connman_service *service,
+ bool autoconnect)
+{
+ if (service == NULL)
+ return;
+
+ if (service->autoconnect != autoconnect) {
+ DBG("updated autoconnect flag (%d)", autoconnect);
+ service->autoconnect = autoconnect;
+ service_save(service);
+ }
+}
+#endif
+
static void service_complete(struct connman_service *service)
{
reply_pending(service, EIO);