summaryrefslogtreecommitdiff
path: root/src/profile.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@linux.intel.com>2011-08-24 16:44:22 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-08-25 11:14:23 +0200
commit3c6dce491343ca61ef568b1a6e2ef92d644a70c7 (patch)
tree1e390a9acfb0c221db9e2951ea2f0f10c8747d68 /src/profile.c
parentcf1707d354d8244debcdf650d1df04fcc2535533 (diff)
downloadconnman-3c6dce491343ca61ef568b1a6e2ef92d644a70c7.tar.gz
connman-3c6dce491343ca61ef568b1a6e2ef92d644a70c7.tar.bz2
connman-3c6dce491343ca61ef568b1a6e2ef92d644a70c7.zip
service: Add services changed signal
Move the services changed dbus signal handling from profile.
Diffstat (limited to 'src/profile.c')
-rw-r--r--src/profile.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/profile.c b/src/profile.c
index aaf0ad0c..b0cb3efa 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -95,45 +95,6 @@ const char *__connman_profile_active_path(void)
return default_profile->path;
}
-static guint changed_timeout = 0;
-
-static gboolean services_changed(gpointer user_data)
-{
- changed_timeout = 0;
-
- if (default_profile == NULL)
- return FALSE;
-
- connman_dbus_property_changed_array(CONNMAN_MANAGER_PATH,
- CONNMAN_MANAGER_INTERFACE, "Services",
- DBUS_TYPE_OBJECT_PATH, __connman_service_list,
- NULL);
-
- return FALSE;
-}
-
-void __connman_profile_changed(gboolean delayed)
-{
- DBG("");
-
- if (changed_timeout > 0) {
- g_source_remove(changed_timeout);
- changed_timeout = 0;
- }
-
- if (__connman_connection_update_gateway() == TRUE) {
- services_changed(NULL);
- return;
- }
-
- if (delayed == FALSE) {
- services_changed(NULL);
- return;
- }
-
- changed_timeout = g_timeout_add_seconds(1, services_changed, NULL);
-}
-
static void free_profile(struct connman_profile *profile)
{
g_free(profile->name);