From 0288f219724f9f615975fc1d2d2ce34287bf47f7 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 16 Jul 2009 10:51:16 +0200 Subject: [PATCH] Trigger auto-connect from service list changed signals --- src/connman.h | 1 + src/profile.c | 2 ++ src/service.c | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/connman.h b/src/connman.h index 3a6bedd..9b200b5 100644 --- a/src/connman.h +++ b/src/connman.h @@ -267,6 +267,7 @@ int __connman_service_indicate_default(struct connman_service *service); int __connman_service_connect(struct connman_service *service); int __connman_service_disconnect(struct connman_service *service); int __connman_service_create_and_connect(DBusMessage *msg); +void __connman_service_auto_connect(void); #include diff --git a/src/profile.c b/src/profile.c index f6ab24b..5ce355e 100644 --- a/src/profile.c +++ b/src/profile.c @@ -93,6 +93,8 @@ static gboolean services_changed(gpointer user_data) append_services(&entry); g_dbus_send_message(connection, signal); + __connman_service_auto_connect(); + return FALSE; } diff --git a/src/service.c b/src/service.c index 4674279..dcf54d2 100644 --- a/src/service.c +++ b/src/service.c @@ -469,7 +469,7 @@ static connman_bool_t is_ignore(struct connman_service *service) return FALSE; } -static void __connman_service_auto_connect(void) +void __connman_service_auto_connect(void) { struct connman_service *service; GSequenceIter *iter; -- 2.7.4